Skip to main content

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.

Metadata

Release files for geohashcx 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geohashcx 0.1.3
File Size Uploaded
geohashcx-0.1.3.tar.gz 19.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geohashcx 0.1.3
File Interpreter ABI Platform
geohashcx-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 32.8 kB

Release files / geohashcx-0.1.3.tar.gz

Download URL geohashcx-0.1.3.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
acba568de2e8e477d5e11f980d1b7dfa6d71cd4df332b3d2368d1cfe9e11ad05
BLAKE2b-256 checksum
How to use checksums
57b3e863ef41f614c8af10474d0baffc0871fbf9558a74e05a8a104ea2cae406
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / geohashcx-0.1.3-py2.py3-none-any.whl

Download URL geohashcx-0.1.3-py2.py3-none-any.whl
Size 13.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
713b6d76c38e604e7f4a4a6c5d7959c81bb4e506ccf754d94c8c71cae524731a
BLAKE2b-256 checksum
How to use checksums
e7251e889a7d21c1dcd517237f502c8ed4c8991f0e319b06e6fdd732b64397d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page