diff --git a/geometry/mercator.hpp b/geometry/mercator.hpp index 3f860ce7ac..a2320e0a4d 100644 --- a/geometry/mercator.hpp +++ b/geometry/mercator.hpp @@ -125,8 +125,8 @@ struct MercatorBounds inline static m2::RectD ToLatLonRect(m2::RectD const & mercatorRect) { - return m2::RectD(MercatorBounds::YToLat(mercatorRect.minY()), MercatorBounds::XToLon(mercatorRect.minX()), - MercatorBounds::YToLat(mercatorRect.maxY()), MercatorBounds::XToLon(mercatorRect.maxX())); + return m2::RectD(YToLat(mercatorRect.minY()), XToLon(mercatorRect.minX()), + YToLat(mercatorRect.maxY()), XToLon(mercatorRect.maxX())); } /// Calculates distance on Earth by two points in mercator diff --git a/partners_api/cian_api.cpp b/partners_api/cian_api.cpp index ab186ded40..0b41071026 100644 --- a/partners_api/cian_api.cpp +++ b/partners_api/cian_api.cpp @@ -17,7 +17,7 @@ using namespace platform; namespace { -// Length of the rect side. +// Length of the rect side in meters. double const kSearchRadius = 500.0; std::unordered_set const kSupportedCities