georaptor


Namegeoraptor JSON
Version 3.0.0 PyPI version JSON
download
home_pagehttps://github.com/ashwin711/georaptor
SummaryA Python Geohash Compression Tool
upload_time2024-04-04 05:55:23
maintainerNone
docs_urlNone
authorAshwin Nair
requires_pythonNone
licenseMIT
keywords geohash optimizer compression location
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            GeoRaptor: Python Geohash Compression Tool
===========================================

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.

Geohash creation for a polygon at a given precision level could result in a huge set of geohashes.

**GeoRaptor** creates the best combination of geohashes across various levels to represent a polygon, by 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 for large polygons, thereby improving speed and performance.

Following is a sample of what georaptor does

.. image:: https://raw.github.com/ashwin711/georaptor/master/images/sgp_input.png
   :width: 480
   :height: 320
.. image:: https://raw.github.com/ashwin711/georaptor/master/images/sgp_output.png
   :width: 480
   :height: 320


*Input:* 1096 geohashes at precision 6 for Singapore.

*Output:* 414 geohashes with a mix of precision 5 and 6.

Performance
-----------

**Input sample size:** 18,992,425

**Output:** 220,375

**Total execution time:** 35.8013219833 seconds

Usage
-----

$ georaptor <input> --output <output> --minlevel <minlevel> --maxlevel <maxlevel>


Example
-------

$ georaptor sample.csv

OR

$ georaptor sample.csv --output sample_out.csv --minlevel 3 --maxlevel 4


Installation
------------

To install georaptor, simply: ::

    $ pip install georaptor


License:
--------


Licensed under the Apache License, Version 2.0. ::

    Copyright 2024 Ashwin Nair <https://www.linkedin.com/in/ashwin-nair7>

   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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ashwin711/georaptor",
    "name": "georaptor",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "geohash, optimizer, compression, location",
    "author": "Ashwin Nair",
    "author_email": "ashwinnair.ua@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/31/06/1474ffd82dd0145b4941e074ea22614a11cee40dca7f67e11e3c1505e29b/georaptor-3.0.0.tar.gz",
    "platform": null,
    "description": "GeoRaptor: Python Geohash Compression Tool\n===========================================\n\nGeohash 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.\n\nGeohash creation for a polygon at a given precision level could result in a huge set of geohashes.\n\n**GeoRaptor** creates the best combination of geohashes across various levels to represent a polygon, by 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 for large polygons, thereby improving speed and performance.\n\nFollowing is a sample of what georaptor does\n\n.. image:: https://raw.github.com/ashwin711/georaptor/master/images/sgp_input.png\n   :width: 480\n   :height: 320\n.. image:: https://raw.github.com/ashwin711/georaptor/master/images/sgp_output.png\n   :width: 480\n   :height: 320\n\n\n*Input:* 1096 geohashes at precision 6 for Singapore.\n\n*Output:* 414 geohashes with a mix of precision 5 and 6.\n\nPerformance\n-----------\n\n**Input sample size:** 18,992,425\n\n**Output:** 220,375\n\n**Total execution time:** 35.8013219833 seconds\n\nUsage\n-----\n\n$ georaptor <input> --output <output> --minlevel <minlevel> --maxlevel <maxlevel>\n\n\nExample\n-------\n\n$ georaptor sample.csv\n\nOR\n\n$ georaptor sample.csv --output sample_out.csv --minlevel 3 --maxlevel 4\n\n\nInstallation\n------------\n\nTo install georaptor, simply: ::\n\n    $ pip install georaptor\n\n\nLicense:\n--------\n\n\nLicensed under the Apache License, Version 2.0. ::\n\n    Copyright 2024 Ashwin Nair <https://www.linkedin.com/in/ashwin-nair7>\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",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python Geohash Compression Tool",
    "version": "3.0.0",
    "project_urls": {
        "Download": "https://github.com/ashwin711/georaptor/tarball/3.0.0",
        "Homepage": "https://github.com/ashwin711/georaptor"
    },
    "split_keywords": [
        "geohash",
        " optimizer",
        " compression",
        " location"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8fbc5b673fdeba52132fda12cfa6640d1e20e24824870207a52f8f4eedc72d6d",
                "md5": "955a862fa283b5b9a9e7b5745616d098",
                "sha256": "ffb8e4b909a3a52659aa5b0fdf4999391f4db170687232a064d1ce61a3404a4d"
            },
            "downloads": -1,
            "filename": "georaptor-3.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "955a862fa283b5b9a9e7b5745616d098",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8382,
            "upload_time": "2024-04-04T05:55:21",
            "upload_time_iso_8601": "2024-04-04T05:55:21.337428Z",
            "url": "https://files.pythonhosted.org/packages/8f/bc/5b673fdeba52132fda12cfa6640d1e20e24824870207a52f8f4eedc72d6d/georaptor-3.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "31061474ffd82dd0145b4941e074ea22614a11cee40dca7f67e11e3c1505e29b",
                "md5": "6fea74eb4c66c59a3983fb1c457fe523",
                "sha256": "373211275ae8265fb602795c855db187e4c5ef402e4bb693130d681557f984f8"
            },
            "downloads": -1,
            "filename": "georaptor-3.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6fea74eb4c66c59a3983fb1c457fe523",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8145,
            "upload_time": "2024-04-04T05:55:23",
            "upload_time_iso_8601": "2024-04-04T05:55:23.451460Z",
            "url": "https://files.pythonhosted.org/packages/31/06/1474ffd82dd0145b4941e074ea22614a11cee40dca7f67e11e3c1505e29b/georaptor-3.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-04 05:55:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ashwin711",
    "github_project": "georaptor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "georaptor"
}
        
Elapsed time: 4.07904s