FirebaseGeoData class

GeoData for Firestore.

Inheritance
Annotations

Constructors

FirebaseGeoData({double latitude = 0, double longitude = 0, String? name})
GeoData for Firestore.
FirebaseGeoData.fromGeoData(GeoData geoData, {String? name})
GeoData for Firestore.
FirebaseGeoData.fromGeoPoint(GeoPoint geoPoint, {String? name})
GeoData for Firestore.

Properties

coords → _Coordinates
Coorinates of GeoData.
no setter
data DynamicMap
Raw data.
no setter
geoPoint GeoPoint
GeoPoint of GeoData.
no setter
hash String
Hash of GeoData.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
latitude double
Latitude of location.
no setteroverride
longitude double
Longitude of location.
no setteroverride
name String
Location name.
no setteroverride
neighbors List<String>
All neighbors of GeoData.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

direction(GeoData target) double
Calculate the direction between tow points.
inherited
distance(GeoData data) double
Calculate the distance between two points.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
regionHash([double radius = 1.0]) List<String>
Returns a hash list in the area by passing radius.
override
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Methods

distanceBetween({required _Coordinates to, required _Coordinates from}) double
Geographical distance between two Co-ordinates.
neighborsOf({required String hash}) List<String>
Neighboring geo-hashes of hash.