GeoPoint
An immutable object representing a geographic location in Firestore. The location is represented as a latitude/longitude pair.
Constructor
GeoPoint
new GeoPoint(latitude, longitude)
Creates a GeoPoint.
Parameter |
|
---|---|
latitude |
number The latitude as a number between -90 and 90. |
longitude |
number The longitude as a number between -180 and 180. |
Properties
latitude
number
The latitude as a number between -90 and 90.
longitude
number
The longitude as a number between -180 and 180.
Method
isEqual
isEqual(other) returns boolean
Returns true if this GeoPoint
is equal to the provided value.
Parameter |
|
---|---|
other |
any type The value to compare against. |
- Returns
-
boolean
true if this
GeoPoint
is equal to the provided value.