diff options
author | Ilya Zverev <zverik@textual.ru> | 2016-08-12 19:17:06 +0300 |
---|---|---|
committer | Ilya Zverev <zverik@textual.ru> | 2016-10-07 17:36:03 +0300 |
commit | aa1dd61dcdb109eef16111962c9c0edb48a4938c (patch) | |
tree | d10aaa901faab7a8d8af4dff217ac4498a5a24c1 /search | |
parent | 09566c5ca7aa761a40b0e769e4e44b85c5c3f429 (diff) |
Feature list tool
Diffstat (limited to 'search')
-rw-r--r-- | search/reverse_geocoder.cpp | 4 | ||||
-rw-r--r-- | search/reverse_geocoder.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/search/reverse_geocoder.cpp b/search/reverse_geocoder.cpp index c2796138dc..657957a51d 100644 --- a/search/reverse_geocoder.cpp +++ b/search/reverse_geocoder.cpp @@ -125,7 +125,7 @@ void ReverseGeocoder::GetNearbyAddress(m2::PointD const & center, Address & addr } } -bool ReverseGeocoder::GetExactAddress(FeatureType & ft, Address & addr) const +bool ReverseGeocoder::GetExactAddress(FeatureType const & ft, Address & addr) const { if (ft.GetHouseNumber().empty()) return false; @@ -178,7 +178,7 @@ void ReverseGeocoder::GetNearbyBuildings(m2::PointD const & center, vector<Build } // static -ReverseGeocoder::Building ReverseGeocoder::FromFeature(FeatureType & ft, double distMeters) +ReverseGeocoder::Building ReverseGeocoder::FromFeature(FeatureType const & ft, double distMeters) { return { ft.GetID(), distMeters, ft.GetHouseNumber(), feature::GetCenter(ft) }; } diff --git a/search/reverse_geocoder.hpp b/search/reverse_geocoder.hpp index 097cbe752d..2f54faedea 100644 --- a/search/reverse_geocoder.hpp +++ b/search/reverse_geocoder.hpp @@ -91,7 +91,7 @@ public: void GetNearbyAddress(m2::PointD const & center, Address & addr) const; /// @param addr (out) the exact address of a feature. /// @returns false if can't extruct address or ft have no house number. - bool GetExactAddress(FeatureType & ft, Address & addr) const; + bool GetExactAddress(FeatureType const & ft, Address & addr) const; private: @@ -111,7 +111,7 @@ private: /// @return Sorted by distance houses vector with valid house number. void GetNearbyBuildings(m2::PointD const & center, vector<Building> & buildings) const; - static Building FromFeature(FeatureType & ft, double distMeters); + static Building FromFeature(FeatureType const & ft, double distMeters); static m2::RectD GetLookupRect(m2::PointD const & center, double radiusM); }; |