| 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) |
no test coverage detected