Class ImageLocation
Object
ImageLocation
The GPS coordinates associated with an image.
It has a custom equality method to handle floating point precision issues.
-
Constructor Summary
ConstructorsConstructorDescriptionImageLocation
(double latitude, double longitude) Creates a newImageLocation
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
the latitude, in degrees (can be positive or negative).double
the longitude, in degrees.int
hashCode()
-
Constructor Details
-
ImageLocation
public ImageLocation(double latitude, double longitude) Creates a newImageLocation
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
-
hashCode
public int hashCode() -
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.
-