Metadata-Version: 2.1
Name: geohashcx
Version: 0.1.2
Summary: Encode/decode Geohashes http://geohash.org
Home-page: https://github.com/aldnav/geohash
Author: Aldrin Navarro
Author-email: aldrinnavarro16@gmail.com
License: GNU General Public License v3
Keywords: geohash
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: cffi (>=1.12.3)

=======
Geohash
=======


.. image:: https://img.shields.io/pypi/v/geohash.svg
        :target: https://pypi.python.org/pypi/geohash

.. image:: https://img.shields.io/travis/aldnav/geohash.svg
        :target: https://travis-ci.org/aldnav/geohash

.. image:: https://readthedocs.org/projects/geohashcx/badge/?version=latest
        :target: https://geohashcx.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status




Encode/decode Geohashes http://geohash.org

Wraps Derek Smith `libgeohash`. See https://github.com/simplegeo/libgeohash for implementation.


* Free software: GNU General Public License v3
* Documentation: https://geohashcx.readthedocs.io.


Features
--------

* Encode

.. code-block:: python

    print(geohash_encode(35.689487, 139.691706))
    # xn774c <- hash for Tokyo, Japan

* Decode

.. code-block:: python

    paris = geohash_decode('u09tvw')
    print(paris.latitude, paris.longitude)
    # 48.856614, 2.352222

Credits
-------

Geohash implementation is by Derek Smith's `libgeohash`. See https://github.com/simplegeo/libgeohash

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.1.1 (2019-06-01)
------------------

* Make precision optional


0.1.1 (2019-06-01)
------------------

* Update installation docs


0.1.0 (2019-05-31)
------------------

* First release on PyPI.


