bool operator <=(GeoPoint other) { if (latitude <= other.latitude && longitude <= other.longitude) return true; return latitude - other.latitude + longitude - other.longitude <= 0; }