{ "info": { "author": "Ashwin Nair/Alexander Mueller", "author_email": "alexander.mueller@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "ProximityPyHash: Geohashes in Proximity\n=======================================\n\n|image0| |Code Health| |PyPI version| |PyPI|\n\nThis is a fork of ProximityHash which improved the setup and changed the\ndependency towards calculating geohash to pygeohash instead of geohash.\n\nGeohash is a geocoding system invented by Gustavo Niemeyer and placed\ninto the public domain. It is a hierarchical spatial data structure\nwhich subdivides space into buckets of grid shape, which is one of the\nmany applications of what is known as a Z-order curve, and generally\nspace-filling curves.\n\n**ProximityPyHash** generates a set of geohashes that cover a circular\narea, given the center coordinates and the radius. It also has an\nadditional option to use\n`GeoRaptor `__ that creates the\nbest combination of geohashes across various levels to represent the\ncircle, starting from the highest level and iterating till the optimal\nblend is brewed. Result accuracy remains the same as that of the\nstarting geohash level, but data size reduces considerably, thereby\nimproving speed and performance.\n\nUsage\n-----\n\n::\n\n $ proximityhash -h\n\n\n usage: proximityhash [-h] [--georaptor GEORAPTOR] [--minlevel MINLEVEL]\n [--maxlevel MAXLEVEL]\n latitude longitude radius precision_level\n\n positional arguments:\n latitude latitude of the center point\n longitude longitude of the center point\n radius radius of coverage in metres\n precision_level geohash precision level\n\n optional arguments:\n -h, --help show this help message and exit\n --georaptor GEORAPTOR georaptor flag to compress the output (default: false)\n --minlevel MINLEVEL minimum level of geohash if georaptor set to true(default: 1)\n --maxlevel MAXLEVEL maximum level of geohash if georaptor set to true(default: 12)\n\nExample\n~~~~~~~\n\n::\n\n $ proximitypyhash 48.858156 2.294776 1000 7\n\n.. figure:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash.png\n :alt: \n\n::\n\n $ proximitypyhash 48.858156 2.294776 2000 7 --georaptor true\n\n.. figure:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash_georaptor.png\n :alt: \n\n::\n\n $ proximitypyhash 48.858156 2.294776 2000 7 --georaptor true --minlevel 3 --maxlevel 6\n\n.. figure:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash_georaptor_limited.png\n :alt: \n\nIn-Code Usage Example\n~~~~~~~~~~~~~~~~~~~~~\n\nYou can use the code also as a library in your application:\n\n::\n\n import proximitypyhash\n proximitypyhash.get_geohash_radius_approximation(latitude=12.0,longitude=77.0,radius=20.0,precision=8,georaptor_flag=False,minlevel=1,maxlevel=12)\n\nInstallation\n------------\n\nTo install proximitypyhash, simply:\n\n::\n\n $ pip install proximitypyhash\n\nDevelopment Setup using pyenv\n-----------------------------\n\nInstall pyenv and pyenv virtualenv:\n\n::\n\n brew install pyenv\n brew install pyenv-virtualenv\n\nCreate and activate the virtualenv:\n\n::\n\n pyenv virtualenv proximitypyhash\n pyenv activate proximitypyhash\n python setup.py develop\n\nRun the tests\n\n::\n\n python setup.py test\n\nLicense:\n--------\n\nThe code is orginally from Ashwin Nair, I just made some changes to it\nto make the setup smoother and added testing functionality with a better\nsetup.\n\nLicensed under the Apache License, Version 2.0.\n\n::\n\n Copyright 2017 Ashwin Nair \n Copyright 2017 Alexander Mueller \n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\nContributors:\n-------------\n\n- Ashwin Nair [https://github.com/ashwin711]\n- Arjun Menon [http://github.com/arjunmenon92]\n- Alexander Mueller[https://github.com/dice89]\n\n.. |image0| image:: https://travis-ci.org/dice89/proximityhash.svg?branch=master\n :target: https://travis-ci.org/dice89/proximityhash\n.. |Code Health| image:: https://landscape.io/github/dice89/proximityhash/master/landscape.svg?style=flat\n :target: https://landscape.io/github/dice89/proximityhash/master\n.. |PyPI version| image:: https://badge.fury.io/py/proximitypyhash.svg\n :target: https://badge.fury.io/py/proximitypyhash\n.. |PyPI| image:: https://img.shields.io/pypi/pyversions/proximitypyhash.svg\n :target: https://img.shields.io/pypi/pyversions/proximitypyhash.svg\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/dice89/proximityhash/archive/0.2.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dice89/proximityhash", "keywords": "geohash", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "proximitypyhash", "package_url": "https://pypi.org/project/proximitypyhash/", "platform": "", "project_url": "https://pypi.org/project/proximitypyhash/", "project_urls": { "Download": "https://github.com/dice89/proximityhash/archive/0.2.1.tar.gz", "Homepage": "https://github.com/dice89/proximityhash" }, "release_url": "https://pypi.org/project/proximitypyhash/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Pygeohash for proximity queries", "version": "0.2.1" }, "last_serial": 3078394, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6cf4be82a257060a2abca16474082344", "sha256": "609ed5c880db08fe9eaddd698b167a1347da1509e9e0dbcb75feda2c4912d55b" }, "downloads": -1, "filename": "proximitypyhash-0.1.tar.gz", "has_sig": false, "md5_digest": "6cf4be82a257060a2abca16474082344", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5602, "upload_time": "2017-08-07T11:57:29", "url": "https://files.pythonhosted.org/packages/02/aa/b461d9b0188f1c93e6eafcef9ba10c5c57a590848b806ed80f47d7850262/proximitypyhash-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d2db087beb499471ba9300045969d501", "sha256": "1809ff97692aaca85254bedb9c31d48f64b54a35a7a910c4a3d034c438afe9fb" }, "downloads": -1, "filename": "proximitypyhash-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d2db087beb499471ba9300045969d501", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5704, "upload_time": "2017-08-07T12:14:38", "url": "https://files.pythonhosted.org/packages/70/0f/7f4025226b64962ed21b08346092079f9e9e897b6a214d119f1b3472c6cd/proximitypyhash-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "514941d1a1b4090f0da98046e149e3b9", "sha256": "3151247d5ddfc47f1e6e0b09ad98f60697256ad850269d24d67438e357958aeb" }, "downloads": -1, "filename": "proximitypyhash-0.2.tar.gz", "has_sig": false, "md5_digest": "514941d1a1b4090f0da98046e149e3b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5858, "upload_time": "2017-08-07T12:53:37", "url": "https://files.pythonhosted.org/packages/eb/d9/892e75b274b6bbaf0ddcbe660d704c2bc5306b6ee48c6956a8bd488b0249/proximitypyhash-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "1f68874dcc9f97c8953f7e30c0a2397e", "sha256": "df1ad0c6904d1d48cc48d3995b8e67d16abf210dc4b839fabaa74f998c2334ba" }, "downloads": -1, "filename": "proximitypyhash-0.2.1.tar.gz", "has_sig": false, "md5_digest": "1f68874dcc9f97c8953f7e30c0a2397e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5843, "upload_time": "2017-08-07T13:05:22", "url": "https://files.pythonhosted.org/packages/ee/f2/9c6a9b949f433ca3a3ffa73d1f34465388a7a98b5d2b9b5c39956d0235d9/proximitypyhash-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f68874dcc9f97c8953f7e30c0a2397e", "sha256": "df1ad0c6904d1d48cc48d3995b8e67d16abf210dc4b839fabaa74f998c2334ba" }, "downloads": -1, "filename": "proximitypyhash-0.2.1.tar.gz", "has_sig": false, "md5_digest": "1f68874dcc9f97c8953f7e30c0a2397e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5843, "upload_time": "2017-08-07T13:05:22", "url": "https://files.pythonhosted.org/packages/ee/f2/9c6a9b949f433ca3a3ffa73d1f34465388a7a98b5d2b9b5c39956d0235d9/proximitypyhash-0.2.1.tar.gz" } ] }