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.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.1.tar.gz (18.8 kB view hashes)

Uploaded Source

Built Distribution

geohashcx-0.1.1-py2.py3-none-any.whl (13.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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