geochatt
Utility Functions for Working with Open GeoSpatial Data about Chattanooga
features
- very fast: uses STRTree for super fast reverse geocoding
- get address from point
- get city council district from point
- get municipality from point
- get zip code from point
install
pip install geochatt
usage
import geochatt
geochatt.get_address(longitude=-85.3076591, latitude=35.0432979)
"101 E 11TH ST"
geochatt.get_city_council_district(longitude=-85.3076591, latitude=35.0432979)
8
geochatt.get_municipality(longitude=-85.3076591, latitude=35.0432979)
"Chattanooga"
geochatt.get_zipcode(longitude=-85.3076591, latitude=35.0432979)
37402
# get_parcel returns a string representing a Well-known text-format polygon
geochatt.get_parcel(address="101 E 11TH ST")
'POLYGON ((-85.3069572 35.043897, -85.3074818 35.0440926, -85.3075952 35.0438743, -85.3078311 35.0434433, -85.3073192 35.0432494, -85.3069718 35.0438707, -85.3069572 35.043897))'
# get_parcel_centroid returns a Shapely Point object
geochatt.get_parcel_centroid(address="101 E 11TH ST")
<POINT (-85.307 35.044)>
cli usage
$ pip install geochatt
$ geochatt get-address --latitude="35.0432979" --longitude="-85.3076591"
101 E 11TH ST
$ geochatt get-city-council-district --latitude="35.0432979" --longitude="-85.3076591"
8
$ geochatt get-municipality --latitude="35.0432979" --longitude="-85.3076591"
Chattanooga
$ geochatt get-parcel --address="101 east 11th street"
POLYGON ((-85.3069572 35.043897, -85.3074818 35.0440926, -85.3075952 35.0438743, -85.3078311 35.0434433, -85.3073192 35.0432494, -85.3069718 35.0438707, -85.3069572 35.043897))
$ geochatt get-parcel-centroid --address="101 east 11th street"
POINT (-85.30739570641228 35.0436712625469)
$ geochatt get-zipcode --latitude="35.0432979" --longitude="-85.3076591"
37402
performance
Reverse geocoding is super fast thanks to STRTree. The performance test of geocoding 1 million random points takes 122.900 seconds, which is 0.000122 seconds per point.
Metadata
Release files for geochatt 0.3.1
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 |
|---|---|---|---|---|
| geochatt-0.3.1.tar.gz | 19.9 MB | Without provenance | Details for geochatt-0.3.1.tar.gz |
Release files / geochatt-0.3.1.tar.gz
| Download URL | geochatt-0.3.1.tar.gz |
|---|---|
| Size | 19.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56a68f9b6152a203c2a75454ab321f2eda2095388362df12484bafb49fe17ac6
|
|
BLAKE2b-256 checksum How to use checksums |
952909108a916fb717506d023cc96fb7183b76403a55985221f68137718953cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for geochatt 0.3.1
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.