docs.rs failed to build geohash-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: geohash-0.13.1

geohash.rs

Geohash.rs is a Rust library for Geohash algorithm. Ported from my node-geohash module.

Build Status

Usage

Cargo


[dependencies.geohash]

git = "https://github.com/sunng87/geohash.rs.git"

Rust

extern crate geohash;

use geohash::{encode, decode}

fn main() {
    println!("encoding 37.8324, 112.5584: {}", encode(37.8324f32, 112.5584f32, 9u));
    let (lat, lon, _, _) = decode("ww8p1r4t8");
    println!("decoding ww8p1r4t8 to: {}, {}", lat, lon);
}

License

Geohash.rs is open sourced under MIT License, of course.