Trait oldnav_lib::navdata::geohash::Geohashable
[−]
[src]
pub trait Geohashable<T> {
fn integer_decode(geohash: u64) -> Result<T, String>;
fn integer_encode(&self, precision: u8) -> Result<u64, String>;
}An object which is able to be geohashed.
Required Methods
fn integer_decode(geohash: u64) -> Result<T, String>
decode this object of type Tfrom an integer geohash
fn integer_encode(&self, precision: u8) -> Result<u64, String>
encode this object of type T into an unsigned integer geohash
Implementors
impl Geohashable<SphericalCoordinate> for SphericalCoordinate