Class GeoPoint


  • public class GeoPoint
    extends Object
    Represents a point on the Earth's surface, in latitude and longitude coordinates.
    • Constructor Detail

      • GeoPoint

        public GeoPoint​(double latitude,
                        double longitude)
        Constructs a GeoPoint from a given latitude and longitude.
        Parameters:
        latitude - the angle between the equatorial plane and a line that passes through the GeoPoint
        longitude - is the angle east or west from a reference meridian to another meridian that passes through the GeoPoint
    • Method Detail

      • getLatitude

        public double getLatitude()
        Returns:
        the angle between the equatorial plan and a line that passes through the GeoPoint
      • getLongitude

        public double getLongitude()
        Returns:
        the angle east or west from a reference meridian to another meridian that passes through the GeoPoint