Class GeoUniq.GeoPoint

  • Enclosing class:
    GeoUniq

    public static class GeoUniq.GeoPoint
    extends java.lang.Object
    Models a point on the Earth
    • Constructor Summary

      Constructors 
      Constructor Description
      GeoPoint​(double latitude, double longitude)
      Constructor set the provided latitude and longitude to this GeoPoint
    • Constructor Detail

      • GeoPoint

        public GeoPoint​(double latitude,
                        double longitude)
        Constructor set the provided latitude and longitude to this GeoPoint
        Parameters:
        latitude - the latitude of the geographical position
        longitude - the longitude of the geographical position
        Throws:
        java.lang.IllegalArgumentException - if latitude is not in the interval [-90, 90] or longitude is not in the interval [-180, 180] or
    • Method Detail

      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getLatitude

        public double getLatitude()
        Returns:
        the GeoPoint latitude
      • getLongitude

        public double getLongitude()
        Returns:
        the GeoPoint longitude