An implementation of GEOHASH in GOLANG. The desciption of GEOHASH can find at here
go get github.com/zhaozy93/geohash_go
import "github.com/zhaozy93/geohash_go"
hashKey, err := geohash_go.EnGeoHash(float64(39.928167), float64(116.389550), 10)
lat, lng, err := geohash_go.DeGeoHash(hashKey)
neigh, err = geohash_go.GetNeighbour(hashKey)
)
If you have any questions or find some unexpectedly discovered, please comment or contribute.
This code has been placed under the Apache License 2.0.