Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.21 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.21 KB

GEOHASH in GO

An implementation of GEOHASH in GOLANG. The desciption of GEOHASH can find at here

Getting the library

go get github.com/zhaozy93/geohash_go

Usage

 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)
)

Bugs

If you have any questions or find some unexpectedly discovered, please comment or contribute.

Refer

GeoHash核心原理解析

地理围栏算法解析(Geo-fencing)

离我最近之geohash算法

用打表的方式解决求Geohash当前区域周围8个区域编码

Geohash求当前区域周围8个区域编码的一种思路


This code has been placed under the Apache License 2.0.