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
path: root/map
diff options
context:
space:
mode:
Diffstat (limited to 'map')
-rw-r--r--map/address_finder.cpp4
-rw-r--r--map/extrapolation_benchmark/extrapolation_benchmark.cpp2
-rw-r--r--map/framework.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/map/address_finder.cpp b/map/address_finder.cpp
index ce3e0c88ae..353406e217 100644
--- a/map/address_finder.cpp
+++ b/map/address_finder.cpp
@@ -99,7 +99,7 @@ namespace
if (!types.Has(m_coastType) && NeedProcess(types))
{
// Convert from meters to degrees for backward compatibility.
- double const d = feature::GetMinDistanceMeters(f, m_pt, m_scale) * MercatorBounds::degreeInMetres;
+ double const d = feature::GetMinDistanceMeters(f, m_pt, m_scale) * MercatorBounds::degreeInMeters;
ASSERT_GREATER_OR_EQUAL(d, 0.0, ());
if (IsInclude(d, types))
@@ -308,7 +308,7 @@ namespace
virtual double GetResultDistance(double d, feature::TypesHolder const & types) const
{
- return (d + GetCompareEpsilonImpl(types.GetGeoType(), 5.0 * MercatorBounds::degreeInMetres));
+ return (d + GetCompareEpsilonImpl(types.GetGeoType(), 5.0 * MercatorBounds::degreeInMeters));
}
virtual double NeedProcess(feature::TypesHolder const & types) const
diff --git a/map/extrapolation_benchmark/extrapolation_benchmark.cpp b/map/extrapolation_benchmark/extrapolation_benchmark.cpp
index cb7df04734..286b44b2bf 100644
--- a/map/extrapolation_benchmark/extrapolation_benchmark.cpp
+++ b/map/extrapolation_benchmark/extrapolation_benchmark.cpp
@@ -269,7 +269,7 @@ int main(int argc, char * argv[])
double const kHalfSquareSide = 100.0;
// |kHalfSquareSide| is chosen based on maximum value of GpsInfo::m_horizontalAccuracy
// which is used calculation of projection in production code.
- m2::RectD const posSquare = MercatorBounds::MetresToXY(
+ m2::RectD const posSquare = MercatorBounds::MetersToXY(
extrapolated.m_longitude, extrapolated.m_latitude, kHalfSquareSide);
// One is deducted from polyline size because in GetClosestProjectionInInterval()
// is used segment indices but not point indices.
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);