Constructor

GeoPoint

new GeoPoint(latitude, longitude)

An immutable object representing a geo point in Cloud Firestore. The geo point is represented as latitude/longitude pair.

Parameter

latitude

number

Latitude values are in the range of -90 to 90.

longitude

number

Longitude values are in the range of -180 to 180.

Properties

latitude

number

The latitude of this GeoPoint instance.

longitude

number

The longitude of this GeoPoint instance.

Method

isEqual

isEqual(other) returns boolean

Returns 'true' if this GeoPoint is equal to the provided one.

Parameter

other

firebase.firestore.GeoPoint

The GeoPoint to compare against.

Value must not be null.

Returns

boolean 'true' if this GeoPoint is equal to the provided one.