MCPcopy Create free account
hub / github.com/comaps/comaps / GetExactAddress

Method GetExactAddress

libs/search/reverse_geocoder.cpp:201–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool ReverseGeocoder::GetExactAddress(FeatureType & ft, Address & addr, bool placeAsStreet /* = false*/) const
202{
203 std::string const & hn = GetHouseNumber(ft);
204 if (hn.empty())
205 return false;
206
207 HouseTable table(m_dataSource, placeAsStreet);
208 return GetNearbyAddress(table, FromFeatureImpl(ft, hn, 0.0 /* distMeters */), false /* ignoreEdits */, addr);
209}
210
211bool ReverseGeocoder::GetExactAddress(FeatureID const & fid, Address & addr) const
212{

Callers 5

ProcessMethod · 0.45
ShowPlacePageMethod · 0.45
GetFeatureAddressInfoFunction · 0.45
SaveEditedMapObjectMethod · 0.45

Calls 3

FromFeatureImplFunction · 0.85
ReadFeatureMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected