diff options
author | Dmitry Yunitsky <yunik@mapswithme.com> | 2015-08-19 17:43:04 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:01:57 +0300 |
commit | ab91a74d83fc44d54fba5caf4605c06adcacb10b (patch) | |
tree | a003a26d6741b1401966d26c5a4e6b8c97f525af /map/framework.cpp | |
parent | 6b808ef4abece30fda3e9260542fd10296e43476 (diff) |
[omim] Added method for correct Azimuth detection.
Diffstat (limited to 'map/framework.cpp')
-rw-r--r-- | map/framework.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 4a5c2af47b..ce9a9f1476 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1503,7 +1503,7 @@ bool Framework::GetDistanceAndAzimut(m2::PointD const & point, // We calculate azimut even when distance is very short (d ~ 0), // because return value has 2 states (near me or far from me). - azimut = ang::AngleTo(MercatorBounds::FromLatLon(lat, lon), point) + north; + azimut = ang::Azimuth(MercatorBounds::FromLatLon(lat, lon), point, north); double const pi2 = 2.0*math::pi; if (azimut < 0.0) |