geohash-rs

A geohash crate for rust

Examples

Encoder

```rust use geohashrs; let geohash = geohashrs::encode(37.5666805, 126.9784147, 8);

assert_eq!(geohash, String::from("wydm9qyc")) ```

Decoder

```rust use geohashrs; let gpsbounds = geohash_rs::decode(String::from("wydm9qyc"));

asserteq!(gpsbounds.latitude[0], 37.56654739379883); asserteq!(gpsbounds.latitude[1], 37.56671905517578); asserteq!(gpsbounds.longitude[0], 126.97826385498047); asserteq!(gpsbounds.longitude[1], 126.97860717773438); ```