Function geohashrust::neighbor
[−]
[src]
pub fn neighbor(hash: &str, direction: (i8, i8)) -> String
Get the neighbor of GeoHash on specific direction
Example
assert_eq!(geohashrust::neighbor("wtw3s", (-1, -1)), "wtw37"); assert_eq!(geohashrust::neighbor("wtw3sjj", (1, -1)), "wtw3sjk");