Class Location

java.lang.Object
com.baremaps.iploc.data.Location

public class Location extends Object
Contains a location comprising a latitude and a longitude
  • Constructor Details

    • Location

      public Location(double latitude, double longitude)
      Create a new location using the given latitude and longitude
      Parameters:
      latitude -
      longitude -
  • Method Details

    • getLatitude

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

      public double getLongitude()
      Returns the longitude
      Returns:
      the longitude
    • toString

      public String toString()
      Overrides:
      toString in class Object