Skip to main content

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.

Source Distribution

geohashcx-0.1.3.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

geohashcx-0.1.3-py2.py3-none-any.whl (13.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for geohashcx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 acba568de2e8e477d5e11f980d1b7dfa6d71cd4df332b3d2368d1cfe9e11ad05
MD5 4ce843942e8a8bf5d1effbbf70d34af6
BLAKE2b-256 57b3e863ef41f614c8af10474d0baffc0871fbf9558a74e05a8a104ea2cae406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for geohashcx-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 713b6d76c38e604e7f4a4a6c5d7959c81bb4e506ccf754d94c8c71cae524731a
MD5 5b4b444bf3ee56398dc5766c646d562b
BLAKE2b-256 e7251e889a7d21c1dcd517237f502c8ed4c8991f0e319b06e6fdd732b64397d1

See more details on using hashes here.

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