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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for geohashcx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1004de1cbf702a1d7dc0e11200bdfce0866dfe5b2116d7cf91fd485bd84f3e48
MD5 a985b77319edf8931f52c68c406d6f9c
BLAKE2b-256 b760ea743db71e37d8040400e1ada8b567edab1d2341ac2c36b114117b3c2351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geohashcx-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for geohashcx-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 46c1fd19c718a0e4d59193fbf553ad47ff3ed08e172b72fb4be0b271b6c2b36a
MD5 5e431e27aa0e246d8b39d9c9e6e81280
BLAKE2b-256 34222f839bf87d4bd13c60039f6eec5be4bc0386a93128d333b8454e0c66a986

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