Class GeoHash
Provides function to encode/decode geo coordinates into and from GeoHash
Geohash is a public domain geocode system invented in 2008 by Gustavo Niemeyer
which encodes a geographic location into a short string of letters and digits.
It is a hierarchical spatial data structure which subdivides space into buckets of grid shape,
which is one of the many applications of what is known as a Z-order curve, and generally space-filling curves.
Inheritance
System.Object
GeoHash
Namespace: Mars.Common
Assembly: Mars.Common.dll
Syntax
public static class GeoHash : object
Remarks
Geohashes offer properties like arbitrary precision and the possibility of gradually removing
characters from the end of the code to reduce its size (and gradually lose precision).
Geohashing guarantees that the longer a shared prefix between two geohashes is,
the spatially closer they are together. The reverse of this is not guaranteed,
as two points can be very close but have a short or no shared prefix.
Methods
GetNextGreaterPrecision(Double)
Gets the nearest next greater precision for a given cell size
Declaration
public static GeoHashPrecision GetNextGreaterPrecision(double cellSizeInMeter)
Parameters
Type | Name | Description |
---|---|---|
System.Double | cellSizeInMeter | The cell size in meter |
Returns
Type | Description |
---|---|
GeoHashPrecision |