Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

iswear/geohash

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 

Repository files navigation

说明:
一种geohash编码方式,直接将经纬度精确到0.0000001位进行16位编码。
计算时将纬度的不同对于距离的影响考虑进去,例如再北纬90度和南纬90度时,
编码的结果将不受经度影响。

搜索附近距离方法:
第一步:通过接口获得搜索前缀。
第二步:使用搜索前缀再数据库中进行匹配搜索,like “xxxx%”,此时可启用索引。
第三步:对搜索结果进行精确计算之后进行筛选和排序。

About

a more accurate geohash encoder

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.