GeoHasher class

A class that can convert a geohash String to Longitude, Latitude and back.

Constructors

GeoHasher()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

decode(String geohash) List<double>
Decodes a given String into a List containing Longitude and Latitude in decimal degrees.
encode(double longitude, double latitude, {int precision: 12}) String
Encodes a given Longitude and Latitude into a String geohash
neighbors(String geohash) Map<String, String>
Returns a Map<String, String> containing the Direction as the key and the value being the geohash of the neighboring geohash in that direction.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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