##geohash
geohash algorithm: https://en.wikipedia.org/wiki/Geohash
package main
import (
"fmt"
"github.com/gansidui/geohash"
)
func main() {
latitude := 39.92324
longitude := 116.3906
precision := 5
hash, box := geohash.Encode(latitude, longitude, precision)
fmt.Println(hash)
fmt.Println(box.MinLat, box.MaxLat, box.MinLng, box.MaxLng)
neighbors := geohash.GetNeighbors(latitude, longitude, precision)
for _, hash = range neighbors {
fmt.Print(hash, " ")
}
}
##LICENSE
MIT