Geohasher
Simple geohash encode/decode functions without any dependencies.
Installation
cargo install geohasher
Encoding
To encode a latitude and longitude into a geohash:
use encode;
let geohash = encode;
assert_eq!;
Decoding
To decode a geohash back into latitude and longitude:
use decode;
let = decode;
assert!;
assert!;
References:
According to Wikipedia:
"Geohash is a public domain geocode system invented in 2008 by Gustavo Niemeyer[1] which encodes a geographic location into a short string of letters and digits. Similar ideas were introduced by G.M. Morton in 1966[2]."