Mapzen Geohash
Project description
Mapzen Geohash
A geohash is a convenient method for encoding geographic coordinates, where each character in the geohash adds additional precision. This makes geohashes well suited for indexing mechanisms, grouping geographically located entities, and compactly encoding coordinates based on the level of detail required.
More information about Geohashes:
- http://www.movable-type.co.uk/scripts/geohash.html
- http://en.wikipedia.org/wiki/Geohash
- http://geohash.org/
This Python package contains simple tools for encoding and decoding geohashes.
Installation
Installation using pip:
pip install mzgeohash
Alternatively, download from PyPi or clone this repository, and install using setup.py:
python ./setup.py install
Example usage
>>> import mzgeohash
>>> mzgeohash.decode('xn76urwe1g9y')
(139.76608408614993, 35.681382017210126)
>>> mzgeohash.encode((139.76608408614993, 35.681382017210126))
'xn76urwe1g9y'
>>> mzgeohash.neighbors('xn76urwe1g9y')
{'c': 'xn76urwe1g9y',
'e': 'xn76urwe1gdn',
'n': 'xn76urwe1g9z',
'ne': 'xn76urwe1gdp',
'nw': 'xn76urwe1g9x',
's': 'xn76urwe1g9v',
'se': 'xn76urwe1gdj',
'sw': 'xn76urwe1g9t',
'w': 'xn76urwe1g9w'}
Contributing
Please open a Github issue with as much of the following information as you're able to specify, or contact us for assistance.
Contact
Transitland is sponsored by Mapzen. Contact us with your questions, comments, or suggests: hello@mapzen.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mzgeohash-1.1.0.tar.gz.
File metadata
- Download URL: mzgeohash-1.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9abf68ebd721ca8e97cb50bb8000abd24096d255c9a5acff91e9dff507f1c3c0
|
|
| MD5 |
118ee982f85207a8cc6eb1044886425c
|
|
| BLAKE2b-256 |
6e18c1876381c452618835cb026aa32beb16d46a54e8abfd8b8f9e32fd4094b9
|
File details
Details for the file mzgeohash-1.1.0-py3-none-any.whl.
File metadata
- Download URL: mzgeohash-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18fe4abd1b14ce1fe3b0a612e0eec5d8b8266ce86a9b4235f6e9789e2e964bca
|
|
| MD5 |
3218ed04b19975f07ed43d86df5a5712
|
|
| BLAKE2b-256 |
e55ee7981ecc5db3c4d64da665d11db56504263f26cdaf812a7d3a8e92bb1d89
|