Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'map/framework.cpp')
-rw-r--r--map/framework.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp
index 1279d60c9b..71b74ccabd 100644
--- a/map/framework.cpp
+++ b/map/framework.cpp
@@ -2478,7 +2478,7 @@ void Framework::PredictLocation(double & lat, double & lon, double accuracy,
double offsetInM = speed * elapsedSeconds;
double angle = base::DegToRad(90.0 - bearing);
- m2::PointD mercatorPt = MercatorBounds::MetresToXY(lon, lat, accuracy).Center();
+ m2::PointD mercatorPt = MercatorBounds::MetersToXY(lon, lat, accuracy).Center();
mercatorPt = MercatorBounds::GetSmPoint(mercatorPt, offsetInM * cos(angle), offsetInM * sin(angle));
lon = MercatorBounds::XToLon(mercatorPt.x);
lat = MercatorBounds::YToLat(mercatorPt.y);