Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教个问题 #3

Open
Jinnrry opened this issue Aug 6, 2019 · 1 comment
Open

请教个问题 #3

Jinnrry opened this issue Aug 6, 2019 · 1 comment

Comments

@Jinnrry
Copy link

Jinnrry commented Aug 6, 2019

如果我有一个经纬度,比如116.425884,39.921842,使用geohash得到wx4g17d9xd,这个字符串表示一个矩形区域,那为什么不直接省略经纬度小数,比如116.42,39.92这样表示区域呢?直接省略小数有什么问题吗

@wadekun
Copy link

wadekun commented Oct 21, 2019

就是精度的问题啊,小数点后的位数越多精度越高。。比如经度 相差0.01度的情况下,位置大概相差1000米。而保留六位小数的情况下,大概就可以精确到米了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants