| 58 | } |
| 59 | |
| 60 | bool CountryInfoReader::BelongsToRegion(m2::PointD const & pt, size_t id) const |
| 61 | { |
| 62 | if (!m_countries[id].m_rect.IsPointInside(pt)) |
| 63 | return false; |
| 64 | |
| 65 | std::vector<m2::RegionD> regions; |
| 66 | LoadRegionsFromDisk(id, regions); |
| 67 | |
| 68 | for (auto const & region : regions) |
| 69 | if (region.Contains(pt)) |
| 70 | return true; |
| 71 | |
| 72 | return false; |
| 73 | } |
| 74 | |
| 75 | CountryInfoReader::Info CountryInfoReader::GetMwmInfo(m2::PointD const & pt) const |
| 76 | { |
nothing calls this directly
no test coverage detected