Uber's hierarchical hexagonal geospatial indexing system
Actively maintained. Last release 12 days ago, commits in 17 of the last 26 weeks. A safe choice.
pip install h3h3-py: Uber's H3 Hexagonal Hierarchical Geospatial Indexing System in Python
Python bindings for the H3 core library.
- Documentation: uber.github.io/h3-py
- GitHub repo: github.com/uber/h3-py
Installation
From PyPI:
pip install h3
From conda:
conda config --add channels conda-forge
conda install h3-py
Usage
>>> import h3
>>> lat, lng = 37.769377, -122.388903
>>> resolution = 9
>>> h3.latlng_to_cell(lat, lng, resolution)
'89283082e73ffff'
APIs
We provide multiple APIs in h3-py.
- All APIs have the same set of functions; see the .