forked from organicmaps/organicmaps
Routing rebuilding fix.
This commit is contained in:
parent
d0947fe4d1
commit
7da94c140f
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ RoutingSession::State RoutingSession::OnLocationPositionChanged(m2::PointD const
|
|||
{
|
||||
// Distance from the last known projection on route
|
||||
// (check if we are moving far from the last known projection).
|
||||
double const dist = m_route.GetCurrentSqDistance(position);
|
||||
double const dist = MercatorBounds::DistanceOnEarth(m_route.GetFollowedPolyline().GetCurrentIter().m_pt, position);
|
||||
if (my::AlmostEqualAbs(dist, m_lastDistance, kRunawayDistanceSensitivityMeters))
|
||||
return m_state;
|
||||
if (dist > m_lastDistance)
|
||||
|
|
Loading…
Add table
Reference in a new issue