string CountryInfoGetter::GetRegionFile(m2::PointD const & pt) const { IdType const id = FindFirstCountry(pt); return id != kInvalidId ? m_countries[id].m_name : string(); }
void CountryInfoGetter::GetRegionInfo(m2::PointD const & pt, CountryInfo & info) const { IdType const id = FindFirstCountry(pt); if (id != kInvalidId) GetRegionInfo(m_countries[id].m_name, info); }
// CountryInfoGetter ------------------------------------------------------------------------------- TCountryId CountryInfoGetter::GetRegionCountryId(m2::PointD const & pt) const { TRegionId const id = FindFirstCountry(pt); return id != kInvalidId ? m_countries[id].m_countryId : kInvalidCountryId; }