Class GeoUniq.GeoPoint

java.lang.Object
com.geouniq.android.GeoUniq.GeoPoint
Enclosing class:
GeoUniq

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

    • 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:
      IllegalArgumentException - if latitude is not in the interval [-90, 90] or longitude is not in the interval [-180, 180] or
  • Method Details

    • toString

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

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

      public double getLongitude()
      Returns:
      the GeoPoint longitude