编码/解码地理哈希http://geohash.org
geohashcx的Python项目详细描述
吉奥哈什
编码/解码地理哈希http://geohash.org
包装Derek Smithlibgeohash有关实现,请参见https://github.com/simplegeo/libgeohash。
- 自由软件:GNU通用公共许可v3
- 文档:https://geohashcx.readthedocs.io
功能
- 编码
fromgeohashimportgeohash_encodeprint(geohash_encode(35.689487,139.691706))# xn774c <- hash for Tokyo, Japan
- 解码
fromgeohashimportgeohash_decodeparis=geohash_decode('u09tvw')print(paris.latitude,paris.longitude)# 48.856614, 2.352222
学分
geohash的实现是由derek smith的libgeohash实现的。见https://github.com/simplegeo/libgeohash
这个包是用Cookiecutter和audreyr/cookiecutter-pypackage项目模板创建的。
历史
0.1.3(2019-06-01)
- 从模块级导出功能
- 修复PYPI徽章
0.1.2(2019-06-01)
- 使精度可选
0.1.1(2019-06-01)
- 更新安装文档
0.1.0(2019-05-31)
- pypi上的第一个版本。