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

Method GetNearbyRegionAddress

libs/search/reverse_geocoder.cpp:291–300  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

289
290// static
291ReverseGeocoder::RegionAddress ReverseGeocoder::GetNearbyRegionAddress(m2::PointD const & center,
292 storage::CountryInfoGetter const & infoGetter,
293 CityFinder & cityFinder)
294{
295 RegionAddress addr;
296 addr.m_featureId = cityFinder.GetCityFeatureID(center);
297 if (!addr.m_featureId.IsValid() || addr.m_featureId.m_mwmId.GetInfo()->GetType() == MwmInfo::WORLD)
298 addr.m_countryId = infoGetter.GetRegionCountryId(center);
299 return addr;
300}
301
302string ReverseGeocoder::GetLocalizedRegionAddress(RegionAddress const & addr, RegionInfoGetter const & nameGetter) const
303{

Callers 1

Calls 5

GetCityFeatureIDMethod · 0.80
GetRegionCountryIdMethod · 0.80
IsValidMethod · 0.45
GetTypeMethod · 0.45
GetInfoMethod · 0.45

Tested by

no test coverage detected