Class GeoPoint

    • Field Detail

      • position

        public final Position position
        Single position containing the latitude, longitude, and (optionally) elevation.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns text containing the single position.
        Overrides:
        toString in class GeoObject
        Returns:
        GeoJSON point represented as human-readable text.
      • equals

        public boolean equals​(java.lang.Object o)
        Returns true if o is the same instance as this GeoPoint or if o is a non-null GeoPoint instance whose position equals this GeoPoint position.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - comparison object.
        Returns:
        true if o is a non-null GeoPoint instance whose position equals this GeoPoint position.
      • hashCode

        public int hashCode()
        Returns position hash code.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        GeoJSOM position as a hash value.
      • builder

        public static GeoPoint.Builder builder()
        Returns a new instance of an GeoPoint builder.
        Returns:
        GeoJSON point builder.