bool City::operator <(const City &_city)const{ if(m_name < _city.name()) return true; if (m_name>_city.name()) return false; if (m_country_id < _city.country_id()) return true; if (m_country_id>_city.country_id()) return false; if (GeoGraphyUtils::less_than(longitude(), _city.longitude())) return true; if (GeoGraphyUtils::greater_than(longitude(), _city.longitude())) return false; if (GeoGraphyUtils::less_than(latitude(), _city.latitude())) return true; if (GeoGraphyUtils::greater_than(latitude(), _city.latitude())) return false; return false; }
std::string Cities::country_name(const City &_city)const{ return m_countries.find_by_id(_city.country_id()).name(); }