Skip to main content

No project description provided

Project description

geohashrs

This project provides geohash (https://en.wikipedia.org/wiki/Geohash) encoding and decoding based on geohash-rust (https://github.com/georust/geohash). You can use geohash_encode(latitude, longitude, zoom_level) to decode and geohash_decode(geohashstring) to decode.

Actually, this version is very early version, it is usable and more functionality will come.

Installation

pip install geohashrs

Usage

Example:

>>> from geohashrs import geohash_encode, geohash_decode
>>> geohash_encode(43.3, 5.4, 10)
'spey6fs0v1'
>>> geohash_decode('spey6fs0v1')
[43.299999833106995, 5.399997532367706]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geohashrs-0.1.3.tar.gz (1.5 kB view hashes)

Uploaded Source

Built Distributions

geohashrs-0.1.3-cp38-cp38-manylinux1_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.8

geohashrs-0.1.3-cp37-cp37m-manylinux1_x86_64.whl (230.4 kB view hashes)

Uploaded CPython 3.7m

geohashrs-0.1.3-cp36-cp36m-manylinux1_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.6m

geohashrs-0.1.3-cp35-cp35m-manylinux1_x86_64.whl (3.5 MB view hashes)

Uploaded CPython 3.5m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page