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
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.
Metadata
Release files for georaptor 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| georaptor-3.0.0.tar.gz | 8.1 kB | Without provenance | Details for georaptor-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| georaptor-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for georaptor-3.0.0-py3-none-any.whl |
Total release size: 16.5 kB
Release files / georaptor-3.0.0.tar.gz
| Download URL | georaptor-3.0.0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
373211275ae8265fb602795c855db187e4c5ef402e4bb693130d681557f984f8
|
|
BLAKE2b-256 checksum How to use checksums |
31061474ffd82dd0145b4941e074ea22614a11cee40dca7f67e11e3c1505e29b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / georaptor-3.0.0-py3-none-any.whl
| Download URL | georaptor-3.0.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ffb8e4b909a3a52659aa5b0fdf4999391f4db170687232a064d1ce61a3404a4d
|
|
BLAKE2b-256 checksum How to use checksums |
8fbc5b673fdeba52132fda12cfa6640d1e20e24824870207a52f8f4eedc72d6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for georaptor 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.