Skip to main content

Encode/decode Geohashes http://geohash.org

Project description

Geohash

https://img.shields.io/pypi/v/geohash.svg https://img.shields.io/travis/aldnav/geohash.svg Documentation Status

Encode/decode Geohashes http://geohash.org

Wraps Derek Smith libgeohash. See https://github.com/simplegeo/libgeohash for implementation.

Features

  • Encode

print(geohash_encode(35.689487, 139.691706))
# xn774c <- hash for Tokyo, Japan
  • Decode

paris = geohash_decode('u09tvw')
print(paris.latitude, paris.longitude)
# 48.856614, 2.352222

Credits

Geohash implementation is by Derek Smith’s libgeohash. See https://github.com/simplegeo/libgeohash

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.1 (2019-06-01)

  • Make precision optional

0.1.1 (2019-06-01)

  • Update installation docs

0.1.0 (2019-05-31)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geohashcx-0.1.2.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geohashcx-0.1.2-py2.py3-none-any.whl (13.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file geohashcx-0.1.2.tar.gz.

File metadata

  • Download URL: geohashcx-0.1.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for geohashcx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 79197622c1fd35ac86b0969946fe8171be08ef33aee57e5c112ceb43e34a006d
MD5 7aa92fe7f0a54f14842dd95b531ec1f1
BLAKE2b-256 46721d24ab1681a1677891aa74be41a0ee168a2ec5060ee27c3ce814e6d581fd

See more details on using hashes here.

File details

Details for the file geohashcx-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: geohashcx-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for geohashcx-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ae6dc8a1c28b1240eb92139545c78353d934048c732644a1f77734a2803c4c49
MD5 6a16898df463153d79975f917638c2fe
BLAKE2b-256 c25bee9773bc8bee41d97b32781a06cf8b7e7e31f210135b3eeb3d00baa3a46c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page