GeoFirePoint class

A model corresponds to Cloud Firestore as geopoint field.

Constructors

GeoFirePoint(GeoPoint geopoint)
Instantiates GeoFirePoint.
const

Properties

data Map<String, dynamic>
Returns geopoint and geohash as Map<String, dynamic>. Can be used when adding or updating to Firestore document.
no setter
geohash String
Returns geohash of GeoFirePoint.
no setter
geopoint → GeoPoint
GeoPoint of the location.
final
hashCode int
The hash code for this object.
no setterinherited
latitude double
Returns latitude of the location.
no setter
longitude double
Returns longitude of the location.
no setter
neighbors List<String>
Returns all neighbors of GeoFirePoint.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

distanceBetweenInKm({required GeoPoint geopoint}) double
Returns distance in kilometers between GeoFirePoint and given geopoint.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited