Immutable class representing a GeoPoint in Firestore
Public Constructor Summary
GeoPoint(double latitude, double longitude)
Construct a new GeoPoint using the provided latitude and longitude values.
|
Public Method Summary
int | |
boolean | |
double | |
double | |
int |
hashCode()
|
String |
toString()
|
Inherited Method Summary
Public Constructors
public GeoPoint (double latitude, double longitude)
Construct a new GeoPoint using the provided latitude and longitude values.
Parameters
latitude | The latitude of this GeoPoint in the range [-90, 90]. |
---|---|
longitude | The longitude of this GeoPoint in the range [-180, 180]. |
Public Methods
public int compareTo (GeoPoint other)
public boolean equals (Object o)
public double getLatitude ()
Returns
- The latitude value of this GeoPoint.
public double getLongitude ()
Returns
- The longitude value of this GeoPoint.