class GeoPoint implements Comparable<GeoPoint> {

  @Override
  public boolean equals(@Nullable Object o) {
    if (!(o instanceof GeoPoint)) {
      return false;
    }

    GeoPoint geoPoint = (GeoPoint) o;

    // We can do exact comparison here, because we only expect finite numbers for latitude and
    // longitude
    return latitude == geoPoint.latitude && longitude == geoPoint.longitude;
  }

  public  GeoPoint(double latitude, double longitude);

}