diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-09-11 16:03:24 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:04:28 +0300 |
commit | 5d25e6ed84f76d94144aacfbc8049e720e366232 (patch) | |
tree | 196eb9305e9917e33f93f1e07ce5c5519c2d25df /routing | |
parent | d5dfe3d8cf20edc9ecadf21da1d19a2c9ab78bad (diff) |
Corrections after colleagues fixes.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/routing_session.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/routing/routing_session.cpp b/routing/routing_session.cpp index 421ef34190..4d1d63e628 100644 --- a/routing/routing_session.cpp +++ b/routing/routing_session.cpp @@ -22,11 +22,11 @@ double constexpr kShowLanesDistInMeters = 500.; // @TODO(vbykoianko) The distance should depend on the current speed. // The distance before the next turn in meters when notification // about the turn after the next one will be shown if available. -double constexpr kShowTheTurnAfterTheNexetM = 500.; +double constexpr kShowTheTurnAfterTheNextM = 500.; // If the distance between two sequential turns is more than kMaxTurnDistM // the information about the second turn will be shown when the user is -// nearing to the first one. -double constexpr kMaxTurnDistM = 50.; +// approaching to the first one. +double constexpr kMaxTurnDistM = 150.; // @todo(kshalnev) The distance may depend on the current speed. double constexpr kShowPedestrianTurnInMeters = 5.; @@ -218,7 +218,7 @@ void RoutingSession::GetRouteFollowingInfo(FollowingInfo & info) const formatDistFn(distanceToTurnMeters, info.m_distToTurn, info.m_turnUnitsSuffix); info.m_turn = turn.m_turn; - if (distanceToTurnMeters < kShowTheTurnAfterTheNexetM && distBetweenTurnsM < kMaxTurnDistM) + if (distanceToTurnMeters < kShowTheTurnAfterTheNextM && distBetweenTurnsM < kMaxTurnDistM) info.m_nextTurn = nextTurn.m_turn; else info.m_nextTurn = routing::turns::TurnDirection::NoTurn; |