geohash v1.0.0 Geohash
Geohash encode/decode and helper functions
Summary
Functions
Calculate adjacent/2 geohash in ordinal direction [“n”,”s”,”e”,”w”] Deals with boundary cases when adjacent is not of the same prefix
Decodes given geohash to a coordinate pair
Decodes given geohash to a coordinate pair
Encodes given coordinates to a geohash of length precision
Encodes given coordinates to a bitstring of length bits_length
Calculate adjacent hashes for the 8 touching neighbors/1
Functions
Calculate adjacent/2 geohash in ordinal direction [“n”,”s”,”e”,”w”] Deals with boundary cases when adjacent is not of the same prefix.
##Examples
iex> Geohash.adjacent("abx1","n")
"abx4"
Encodes given coordinates to a geohash of length precision
Examples
iex> Geohash.encode(42.6, -5.6, 5) “ezs42”