All Projects → transitland → mapzen-geohash

transitland / mapzen-geohash

Licence: MIT license
Python package containing simple tools for encoding and decoding geohashes

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to mapzen-geohash

leveldb-cli
CLI for LevelDB
Stars: ✭ 86 (+65.38%)
Mutual labels:  geohash
geohash-dotnet
Easy-to-use and feature-rich geohash library written in C#
Stars: ✭ 43 (-17.31%)
Mutual labels:  geohash
geoh
Transform a geoJSON into a list of geohashes that intersect with it
Stars: ✭ 26 (-50%)
Mutual labels:  geohash
geohash
Geohash for Rust
Stars: ✭ 64 (+23.08%)
Mutual labels:  geohash
geohash
Go Geohash
Stars: ✭ 42 (-19.23%)
Mutual labels:  geohash
geohash
geohash http server
Stars: ✭ 32 (-38.46%)
Mutual labels:  geohash

Mapzen Geohash

Circle CI

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:

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: [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].