Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Encode/decode Geohashes http://geohash.org

Project description

Geohash

https://img.shields.io/pypi/v/geohashcx.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
from geohash import geohash_encode
print(geohash_encode(35.689487, 139.691706))
# xn774c <- hash for Tokyo, Japan
  • Decode
from geohash import geohash_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.3 (2019-06-01)

  • Export function from module level
  • Fix pypi badge

0.1.2 (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.

Filename, size & hash SHA256 hash help File type Python version Upload date
geohashcx-0.1.3-py2.py3-none-any.whl (13.8 kB) Copy SHA256 hash SHA256 Wheel 3.7
geohashcx-0.1.3.tar.gz (19.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page