java.lang.Object |
↳ |
com.google.firebase.firestore.GeoPoint |
Class Overview
Immutable class representing a GeoPoint in Firestore
Summary
Public Constructors |
|
GeoPoint(double latitude, double longitude)
Construct a new GeoPoint using the provided latitude and longitude values.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
java.lang.Comparable
|
Public Constructors
public
GeoPoint
(double latitude, double longitude)
Construct a new GeoPoint using the provided latitude and longitude values.
Parameters |
latitude |
double : The latitude of this GeoPoint in the range [-90, 90]. |
longitude |
double : The longitude of this GeoPoint in the range [-180, 180].
|
Public Methods
public
int
compareTo
(GeoPoint other)
Parameters |
other |
GeoPoint |
public
boolean
equals
(Object o)
public
double
getLatitude
()
Returns |
double |
The latitude value of this GeoPoint. |
public
double
getLongitude
()
Returns |
double |
The longitude value of this GeoPoint. |
public
String
toString
()