Esempio n. 1
0
string CountryInfoGetter::GetRegionFile(m2::PointD const & pt) const
{
  IdType const id = FindFirstCountry(pt);
  return id != kInvalidId ? m_countries[id].m_name : string();
}
Esempio n. 2
0
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);
}
Esempio n. 3
0
// CountryInfoGetter -------------------------------------------------------------------------------
TCountryId CountryInfoGetter::GetRegionCountryId(m2::PointD const & pt) const
{
  TRegionId const id = FindFirstCountry(pt);
  return id != kInvalidId ? m_countries[id].m_countryId : kInvalidCountryId;
}