GeoPoint
An immutable object representing a geographic location in Firestore. The location is represented as latitude/longitude pair.
Latitude values are in the range of [-90, 90]. Longitude values are in the range of [-180, 180].
class GeoPoint {}
§Constructors
§Properties
§Methods
§
toJSON(): {
[src]latitude: number;
longitude: number;
type: string;
}Returns a JSON-serializable representation of this GeoPoint
instance.
@return
a JSON representation of this object.
§Static Methods
§
Builds a GeoPoint
instance from a JSON object created by GeoPoint.toJSON.
@param json
a JSON object represention of a GeoPoint
instance
@return
an instance of GeoPoint if the JSON object could be parsed. Throws a FirestoreError if an error occurs.