【发布时间】:2016-03-19 21:33:48
【问题描述】:
我在 python 中使用 Geohash 库。考虑这段代码:
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Geohash
>>> Geohash.decode("u3qcr")
('52.3', '21.1')
>>> Geohash.decode("u3qcx")
('52.3', '21.1')
为什么不同的哈希值会得到相同的结果?我希望我们有不同的最后一个字母,我们会得到不同的矩形。我错过了什么?
【问题讨论】:
标签: python geohashing