The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > / > 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.