Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harikitech/py-geohex3
Geohex v3.2 python implementation.
https://github.com/harikitech/py-geohex3
Last synced: 3 months ago
JSON representation
Geohex v3.2 python implementation.
- Host: GitHub
- URL: https://github.com/harikitech/py-geohex3
- Owner: harikitech
- License: mit
- Created: 2015-04-22T05:19:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T21:48:38.000Z (almost 4 years ago)
- Last Synced: 2024-11-01T02:49:09.298Z (3 months ago)
- Language: Python
- Size: 38.1 KB
- Stars: 15
- Watchers: 14
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - harikitech/py-geohex3 - Geohex v3.2 python implementation. (others)
README
# py-geohex3
Geohex v3.2 python implementation.[![Build Status](https://travis-ci.org/uncovertruth/py-geohex3.svg?branch=master)](https://travis-ci.org/uncovertruth/py-geohex3)
## Install
### PyPI
```shell
pip install py-geohex3
```### from source
```shell
git clone https://github.com/uncovertruth/py-geohex3.gitcd py-geohex3
python setup.py install
```## Usage
```python
import geohex## retrieve geohex code from latitude / longitude
zone = geohex.get_zone_by_location(35.65858, 139.745433, 11)
print(zone.code)
# 'XM48854457273'## retrieve location from geohex code
zone = geohex.get_zone_by_code('XM48854457273')
print(zone.lat, zone.lon)
# (35.658618718910624, 139.74540917994662)
```