Stay organized with collections
Save and categorize content based on your preferences.
Constructors
constructor
- new GeoPoint
(
latitude
:
number
,
longitude
:
number
)
:
GeoPoint
-
Parameters
-
latitude: number
-
longitude: number
Properties
latitude
latitude: number
longitude
longitude: number
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/node/firebase).\n- [firestore](/docs/reference/node/firebase.firestore).\n- GeoPoint \nAn immutable object representing a geo point in Firestore. The geo point\nis represented as latitude/longitude pair.\n\nLatitude values are in the range of \\[-90, 90\\].\nLongitude values are in the range of \\[-180, 180\\].\n\nIndex\n\nConstructors\n\n- [constructor](/docs/reference/node/firebase.firestore.GeoPoint#constructor)\n\nProperties\n\n- [latitude](/docs/reference/node/firebase.firestore.GeoPoint#latitude)\n- [longitude](/docs/reference/node/firebase.firestore.GeoPoint#longitude)\n\nMethods\n\n- [isEqual](/docs/reference/node/firebase.firestore.GeoPoint#isequal)\n\nConstructors\n\nconstructor\n\n- new GeoPoint ( latitude : number , longitude : number ) : [GeoPoint](/docs/reference/node/firebase.firestore.GeoPoint)\n- Creates a new immutable GeoPoint object with the provided latitude and\n longitude values.\n\n Parameters\n -\n\n latitude: number \n The latitude as number between -90 and 90.\n -\n\n longitude: number \n The longitude as number between -180 and 180.\n\n Returns [GeoPoint](/docs/reference/node/firebase.firestore.GeoPoint)\n\nProperties\n\nlatitude \nlatitude: number \nThe latitude of this GeoPoint instance.\n\nlongitude \nlongitude: number \nThe longitude of this GeoPoint instance.\n\nMethods\n\nisEqual\n\n- isEqual ( other : [GeoPoint](/docs/reference/node/firebase.firestore.GeoPoint) ) : boolean\n- Returns true if this `GeoPoint` is equal to the provided one.\n\n Parameters\n -\n\n other: [GeoPoint](/docs/reference/node/firebase.firestore.GeoPoint) \n The `GeoPoint` to compare against.\n\n Returns boolean\n\ntrue if this `GeoPoint` is equal to the provided one."]]
An immutable object representing a geo point in Firestore. The geo point is represented as latitude/longitude pair.
Latitude values are in the range of [-90, 90]. Longitude values are in the range of [-180, 180].