Function geohashrust::encode
[−]
[src]
pub fn encode(l: &GeoLocation, precision: u8) -> String
Encode a GeoLocation
into GeoHash with given precision
Example
let l=geohashrust::GeoLocation{ latitude:31.16373922, longitude:121.62585927, }; assert_eq!(geohashrust::encode(&l, 7), "wtw3r9j");