{ "info": { "author": "Abhishek Pandey", "author_email": "ashp.pandey916@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "## libgeohash\n\nA python library for interacting with [geohashes](https://en.wikipedia.org/wiki/Geohash). \n\nThe library is divided into 3 modules:\n- __geohash_base__: Base functions for interacting with geohashes e.g. `encode`, `decode`, `neighbors`, `bbox` etc. \n- __distance_metrics__: Distance related functions e.g. `distance`, `dimensions` etc. \n- __geometry__: Functions for conversion of a polygon to a list of geohash and vice versa. e.g. `polygon_to_geohash`, `geohash_to_polygon`. Useful for approximating geographical regions with geohashes. Makes use of [shapely](https://pypi.org/project/Shapely/) library for geometric calculations.\n\n### Installation\n\nLinux and Mac users can install the package via pip. \n\n`$ pip install libgeohash`\n\n### Usage\n\n```python\n>>> import libgeohash as gh\n\n>>> gh.encode(57.64911, 10.40744, precision = 10)\n'u4pruydqqv'\n\n>>> gh.decode('u4pruydqqv', errors = True)\n(57.64911264181137, 10.407437682151794, 2.682209014892578e-06, 5.364418029785156e-06)\n\n>>> gh.neighbors('u4pruydqqv')\n{'ne': 'u4pruydqrn', 'e': 'u4pruydqrj', 'n': 'u4pruydqqy', 'se': 'u4pruydqrh', \n'w': 'u4pruydqqt', 'sw': 'u4pruydqqs', 'nw': 'u4pruydqqw', 's': 'u4pruydqqu'}\n\n# Returns dimensions of the bounding box referred by the geohash in meters. (width, height)\n>>> gh.dimensions('u4pruyd')\n(152.9, 152.4)\n\n# Returns the great circle distance (Haversine) between two geohashes or coordinates. \n>>> gh.distance('u4pruyd', 'u4pruyg')\n173.19066702376304\n\n```\n\n- For more functions and their usage, please refer to the doc strings. \n\n### Known issues\n- Fails to approximate a polygon spanning across the [International Date Line](https://en.wikipedia.org/wiki/International_Date_Line) i.e. 180/-180 longitude. Shouldn't be much of a problem since there aren't any geographical entities that actually span across it due to nature of the line itself. \n\nIf you happen to find any other bugs, please report them in the issues section. \n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/bashhike/libgeohash/archive/0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bashhike/libgeohash", "keywords": "geohash,polygon to geohash,shapely,geohashes", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "libgeohash", "package_url": "https://pypi.org/project/libgeohash/", "platform": "", "project_url": "https://pypi.org/project/libgeohash/", "project_urls": { "Download": "https://github.com/bashhike/libgeohash/archive/0.1.tar.gz", "Homepage": "https://github.com/bashhike/libgeohash" }, "release_url": "https://pypi.org/project/libgeohash/0.1.1/", "requires_dist": [ "shapely" ], "requires_python": "", "summary": "Python library for interacting with geohashes.", "version": "0.1.1" }, "last_serial": 5542315, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "e37563b164119854d90e76fea04b028f", "sha256": "f7c26afd6a469537facfca4c022c7c2b535cdb05828a0a366275926d77516d46" }, "downloads": -1, "filename": "libgeohash-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e37563b164119854d90e76fea04b028f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7683, "upload_time": "2019-07-16T19:31:32", "url": "https://files.pythonhosted.org/packages/91/62/2aecefecfeb1d0a80ea60734689fe8e4af611a8b34251ba1acdeb58ad0b4/libgeohash-0.1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e37563b164119854d90e76fea04b028f", "sha256": "f7c26afd6a469537facfca4c022c7c2b535cdb05828a0a366275926d77516d46" }, "downloads": -1, "filename": "libgeohash-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e37563b164119854d90e76fea04b028f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7683, "upload_time": "2019-07-16T19:31:32", "url": "https://files.pythonhosted.org/packages/91/62/2aecefecfeb1d0a80ea60734689fe8e4af611a8b34251ba1acdeb58ad0b4/libgeohash-0.1.1-py2.py3-none-any.whl" } ] }