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:
authorKirill Zhdanovich <kzhdanovich@gmail.com>2013-05-01 01:37:03 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:54:08 +0300
commit2459e75906ee14b10ef3b3cbfe2e41ee4304d760 (patch)
tree5fb0357eecb01629e53fac3d527ff29f2af29b45 /map/address_finder.cpp
parent5faf37b68248f36883f28409e75bcae462f51068 (diff)
Get name and Address at global point added to framework
Diffstat (limited to 'map/address_finder.cpp')
-rw-r--r--map/address_finder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/map/address_finder.cpp b/map/address_finder.cpp
index d78a769b1f..cf90b7f23b 100644
--- a/map/address_finder.cpp
+++ b/map/address_finder.cpp
@@ -475,6 +475,11 @@ void Framework::GetAddressInfo(m2::PointD const & pxPoint, AddressInfo & info) c
// Input point is in pixel coordinates.
m2::PointD const pt = PtoG(pxPoint);
+ GetAddressInfoForGlobalPoint(pt, info);
+}
+
+void Framework::GetAddressInfoForGlobalPoint(m2::PointD const & pt, AddressInfo & info) const
+{
info.Clear();
info.m_country = GetCountryName(pt);