geohash:用于golang的geohash

时间:2021-04-30 05:35:55
【文件属性】:
文件名称:geohash:用于golang的geohash
文件大小:2KB
文件格式:ZIP
更新时间:2021-04-30 05:35:55
Go ## geohash 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 , pr
【文件预览】:
geohash-master
----README.md(508B)
----geohash.go(4KB)
----geohash_test.go(360B)

网友评论