Class ImageLocation

Object
ImageLocation

public class ImageLocation extends Object
The GPS coordinates associated with an image.

It has a custom equality method to handle floating point precision issues.

  • Constructor Details

    • ImageLocation

      public ImageLocation(double latitude, double longitude)
      Creates a new ImageLocation instance.
      Parameters:
      latitude - the latitude, in degrees (can be positive or negative).

      It is specified in degrees where positive values are north of the equator, and negative values are south of it.

      longitude - the longitude, in degrees.

      It is specified in degrees where positive values are east of the prime meridian, and negative values are west of it.

  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getLatitude

      public double getLatitude()
      the latitude, in degrees (can be positive or negative).

      It is specified in degrees where positive values are north of the equator, and negative values are south of it.

    • getLongitude

      public double getLongitude()
      the longitude, in degrees.

      It is specified in degrees where positive values are east of the prime meridian, and negative values are west of it.