java.lang.Object
org.springframework.data.elasticsearch.core.geo.GeoPoint

public class GeoPoint extends Object
geo-location used for #Criteria.
Author:
Franck Marchand, Mohsin Husen, Peter-Josef Meisch
  • Constructor Details

    • GeoPoint

      public GeoPoint(double latitude, double longitude)
  • Method Details

    • getLat

      public double getLat()
    • getLon

      public double getLon()
    • fromPoint

      public static GeoPoint fromPoint(org.springframework.data.geo.Point point)
      build a GeoPoint from a Point
      Parameters:
      point - Point
      Returns:
      a GeoPoint
    • toPoint

      public static org.springframework.data.geo.Point toPoint(GeoPoint point)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object