Skip to main content

Utility Functions for Working with Open GeoSpatial Data about Chattanooga

Project description

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)>

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geochatt-0.1.0.tar.gz (23.2 MB view details)

Uploaded Source

File details

Details for the file geochatt-0.1.0.tar.gz.

File metadata

  • Download URL: geochatt-0.1.0.tar.gz
  • Upload date:
  • Size: 23.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for geochatt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 47aeb11588370c286365b609e0bfb0dc7f2347aa5f05f690d1b45cda12481756
MD5 aaa657a3df449ab29218673437a2b2ec
BLAKE2b-256 2cf8393e2d43e8b9b900f94935d810adaa84d82354cebb6c40afc81e2bf17463

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page