Home > @firebase/firestore > lite > GeoPoint > (constructor)
GeoPoint.(constructor)
Creates a new immutable GeoPoint
object with the provided latitude and longitude values.
Signature:
constructor(latitude: number, longitude: number);
Parameters
Parameter | Type | Description |
---|---|---|
latitude | number | The latitude as number between -90 and 90. |
longitude | number | The longitude as number between -180 and 180. |