Class GeographicPoint2d

java.lang.Object
org.springframework.data.neo4j.types.GeographicPoint2d
All Implemented Interfaces:
Neo4jPoint

@API(status=STABLE, since="6.0") public final class GeographicPoint2d extends Object
A concrete, 2-dimensional geographic point with a specific coordinate system.
Since:
6.0
Author:
Michael J. Simons
  • Field Details

    • coordinate

      protected final Coordinate coordinate
  • Constructor Details

    • GeographicPoint2d

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

    • getLongitude

      public double getLongitude()
    • getLatitude

      public double getLatitude()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSrid

      public final Integer getSrid()
      Description copied from interface: Neo4jPoint
      Returns the Srid identifying the Coordinate Reference Systems (CRS) used by this point.
      Specified by:
      getSrid in interface Neo4jPoint
      Returns:
      the Srid identifying the Coordinate Reference Systems (CRS) used by this point
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object