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

Method GetExactAddress

libs/search/ranker.cpp:439–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 }
438
439 bool GetExactAddress(FeatureType & ft, m2::PointD const & center, ReverseGeocoder::Address & addr) const
440 {
441 if (m_reverseGeocoder.GetExactAddress(ft, addr, true /* placeAsStreet */))
442 return true;
443
444 m_reverseGeocoder.GetNearbyAddress(center, 0.0 /* maxDistanceM */, addr, true /* placeAsStreet */);
445 return addr.IsValid();
446 }
447
448 // For the best performance, incoming ids should be sorted by id.first (mwm file id).
449 unique_ptr<FeatureType> LoadFeature(FeatureID const & id, m2::PointD & center, string & name, string & country)

Callers 1

MakeResultMethod · 0.45

Calls 2

GetNearbyAddressMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected