ProximityHash: Geohashes in Proximity (with the option of compression using Georaptor_)
=======================================================================================
.. _GeoRaptor: https://github.com/ashwin711/georaptor
Geohash is a geocoding system invented by Gustavo Niemeyer and placed into the public domain. It is a hierarchical
spatial data structure which subdivides space into buckets of grid shape, which is one of the many applications of
what is known as a Z-order curve, and generally space-filling curves.
**ProximityHash** generates a set of geohashes that cover a circular area, given the center coordinates and the radius.
It also has an additional option to use **GeoRaptor** that creates the best combination of geohashes across various
levels to represent the circle, starting from the highest level and iterating till the optimal blend is brewed. Result
accuracy remains the same as that of the starting geohash level, but data size reduces considerably, thereby improving
speed and performance.
Usage
-----
::
$ proximityhash -h
::
usage: proximityhash [-h] [--georaptor GEORAPTOR] [--minlevel MINLEVEL]
[--maxlevel MAXLEVEL]
latitude longitude radius precision_level
positional arguments:
latitude latitude of the center point
longitude longitude of the center point
radius radius of coverage in metres
precision_level geohash precision level
optional arguments:
-h, --help show this help message and exit
--georaptor GEORAPTOR georaptor flag to compress the output (default: false)
--minlevel MINLEVEL minimum level of geohash if georaptor set to true(default: 1)
--maxlevel MAXLEVEL maximum level of geohash if georaptor set to true(default: 12)
Example
-------
::
$ proximityhash 48.858156 2.294776 1000 7
.. image:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash.png
:width: 480
:height: 320
::
$ proximityhash 48.858156 2.294776 2000 7 --georaptor true
.. image:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash_georaptor.png
:width: 480
:height: 320
::
$ proximityhash 48.858156 2.294776 2000 7 --georaptor true --minlevel 3 --maxlevel 6
.. image:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash_georaptor_limited.png
:width: 480
:height: 320
Installation
------------
To install proximityhash, simply: ::
$ pip install proximityhash
License:
--------
Licensed under the Apache License, Version 2.0. ::
Copyright 2017 Ashwin Nair <https://www.linkedin.com/in/nairashwin7>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contributors:
-------------
- Ashwin Nair [https://github.com/ashwin711]
- Arjun Menon - [http://github.com/arjunmenon92]
Raw data
{
"_id": null,
"home_page": "https://github.com/ashwin711/proximityhash",
"name": "proximityhash",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "geohash, optimizer, compression, geo, latitude, longitude, coordinates, proximity, circle",
"author": "Ashwin Nair",
"author_email": "ashwinnair.ua@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ee/c7/246e3b2a4ed74bd8a224faa6ab954ddb77dcc74fb3cb35907407d1f0ebbf/proximityhash-3.0.1.tar.gz",
"platform": null,
"description": "ProximityHash: Geohashes in Proximity (with the option of compression using Georaptor_)\n=======================================================================================\n\n.. _GeoRaptor: https://github.com/ashwin711/georaptor\n\nGeohash is a geocoding system invented by Gustavo Niemeyer and placed into the public domain. It is a hierarchical\nspatial data structure which subdivides space into buckets of grid shape, which is one of the many applications of\nwhat is known as a Z-order curve, and generally space-filling curves.\n\n**ProximityHash** generates a set of geohashes that cover a circular area, given the center coordinates and the radius.\nIt also has an additional option to use **GeoRaptor** that creates the best combination of geohashes across various\nlevels to represent the circle, starting from the highest level and iterating till the optimal blend is brewed. Result\naccuracy remains the same as that of the starting geohash level, but data size reduces considerably, thereby improving\nspeed and performance.\n\n\nUsage\n-----\n::\n\n$ proximityhash -h\n\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\n\nExample\n-------\n::\n\n$ proximityhash 48.858156 2.294776 1000 7\n\n.. image:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash.png\n :width: 480\n :height: 320\n\n::\n\n$ proximityhash 48.858156 2.294776 2000 7 --georaptor true\n\n.. image:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash_georaptor.png\n :width: 480\n :height: 320\n\n::\n\n$ proximityhash 48.858156 2.294776 2000 7 --georaptor true --minlevel 3 --maxlevel 6\n\n.. image:: https://raw.github.com/ashwin711/proximityhash/master/images/proximityhash_georaptor_limited.png\n :width: 480\n :height: 320\n\n\nInstallation\n------------\n\nTo install proximityhash, simply: ::\n\n $ pip install proximityhash\n\n\nLicense:\n--------\n\nLicensed under the Apache License, Version 2.0. ::\n\n Copyright 2017 Ashwin Nair <https://www.linkedin.com/in/nairashwin7>\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\n\nContributors:\n-------------\n\n- Ashwin Nair [https://github.com/ashwin711]\n- Arjun Menon - [http://github.com/arjunmenon92]\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Geohashes in proximity",
"version": "3.0.1",
"project_urls": {
"Download": "https://github.com/ashwin711/proximityhash/tarball/3.0.0",
"Homepage": "https://github.com/ashwin711/proximityhash"
},
"split_keywords": [
"geohash",
" optimizer",
" compression",
" geo",
" latitude",
" longitude",
" coordinates",
" proximity",
" circle"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c43b5d3b02883caeca7abd7d4ca65bb47082351ade5e70826befedd3c81c3b47",
"md5": "c3f915bd797cd333bc279fad055d5773",
"sha256": "1d040f6f7b4d0792a22d771d42b4900ca9092a8e1ebc8ac28a2fe1ad53226b53"
},
"downloads": -1,
"filename": "proximityhash-3.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c3f915bd797cd333bc279fad055d5773",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 8742,
"upload_time": "2024-05-31T05:22:18",
"upload_time_iso_8601": "2024-05-31T05:22:18.280642Z",
"url": "https://files.pythonhosted.org/packages/c4/3b/5d3b02883caeca7abd7d4ca65bb47082351ade5e70826befedd3c81c3b47/proximityhash-3.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "eec7246e3b2a4ed74bd8a224faa6ab954ddb77dcc74fb3cb35907407d1f0ebbf",
"md5": "834444bd39de49423a8b8e70ab03c1be",
"sha256": "d05f173ef7b2cf5d5e1494b850052129217831269f8e4478fb518707ae5483fd"
},
"downloads": -1,
"filename": "proximityhash-3.0.1.tar.gz",
"has_sig": false,
"md5_digest": "834444bd39de49423a8b8e70ab03c1be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8462,
"upload_time": "2024-05-31T05:22:19",
"upload_time_iso_8601": "2024-05-31T05:22:19.460487Z",
"url": "https://files.pythonhosted.org/packages/ee/c7/246e3b2a4ed74bd8a224faa6ab954ddb77dcc74fb3cb35907407d1f0ebbf/proximityhash-3.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-31 05:22:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ashwin711",
"github_project": "proximityhash",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "proximityhash"
}