diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2018-11-20 11:34:32 +0300 |
---|---|---|
committer | mpimenov <mpimenov@users.noreply.github.com> | 2018-11-23 17:58:49 +0300 |
commit | 37aff68a2ab6bfcc85092d7fd4a7b2860705059f (patch) | |
tree | 22479bfa418a4d20784e5622bfba3e8cbbba823a /routing_common | |
parent | ef073bc828769bcdb4cc05f27c977357f68a0169 (diff) |
[routing] Section format was changed. Using delta coding for storing feature id in bidirectional case. Review fixes.
Diffstat (limited to 'routing_common')
-rw-r--r-- | routing_common/car_model.cpp | 4 | ||||
-rw-r--r-- | routing_common/maxspeed_conversion.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/routing_common/car_model.cpp b/routing_common/car_model.cpp index 174901458a..a1db1510a4 100644 --- a/routing_common/car_model.cpp +++ b/routing_common/car_model.cpp @@ -240,8 +240,8 @@ SpeedKMpH CarModel::GetSpeed(FeatureType & f, SpeedParams const & speedParams) c // Note. It's the first rough attempt using maxspeed tag value for speed calculation. // It's used as a feature speed if it's valid and less then some value. // @TODO maxspeed tag value should be used more sophisticated. - uint16_t const maxspeedBasedspeedKmPH = speedParams.m_maxspeed.GetSpeedKmPH(speedParams.m_forward); - auto const speedKmPH = min(static_cast<double>(maxspeedBasedspeedKmPH), GetMaxWeightSpeed()); + uint16_t const maxspeedBasedSpeedKmPH = speedParams.m_maxspeed.GetSpeedKmPH(speedParams.m_forward); + auto const speedKmPH = min(static_cast<double>(maxspeedBasedSpeedKmPH), GetMaxWeightSpeed()); return {speedKmPH /* weight */, speedKmPH /* eta */}; } diff --git a/routing_common/maxspeed_conversion.hpp b/routing_common/maxspeed_conversion.hpp index a54c1560dc..0886f10578 100644 --- a/routing_common/maxspeed_conversion.hpp +++ b/routing_common/maxspeed_conversion.hpp @@ -10,7 +10,7 @@ namespace routing { -/// \brief This enum class contains most popular maxspeed value according to +/// \brief This enum class contains the most popular maxspeed values according to /// https://taginfo.openstreetmap.org/keys/maxspeed#values. /// \note Value of this enum is saved to mwm. So they should not be changed because of backward /// compatibility. But it's possible to add some new values to this enum. |