Class GeoPoint

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ExtendedGeoPoint

    @StableMinor(version="17.0",
                 sinceVersion="10.2")
    public class GeoPoint
    extends java.lang.Object
    implements java.io.Serializable
    Geo point used to locate a geographic point using latitude and longitude.
    Since:
    10.2.0
    Version:
    $Revision: 26587 $ $Date: 2024-08-26 21:09:17 -0300 (Mon, 26 Aug 2024) $
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GeoPoint​(double lat, double lon)
      Creates a new instance.
    • Constructor Detail

      • GeoPoint

        public GeoPoint​(double lat,
                        double lon)
        Creates a new instance.
        Parameters:
        lat - the latitude.
        lon - the longitude.
        Since:
        10.2.0
    • Method Detail

      • getLatitude

        public double getLatitude()
        Returns the latitude.
        Returns:
        the latitude.
        Since:
        10.2.0
      • getLongitude

        public double getLongitude()
        Returns the longitude.
        Returns:
        the longitude.
        Since:
        10.2.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object