# geochatt
Utility Functions for Working with Open GeoSpatial Data about Chattanooga
## features
- very fast: uses [STRTree](https://shapely.readthedocs.io/en/2.0.4/strtree.html) 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
```sh
pip install geochatt
```
## usage
```py
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
```
## performance
Reverse geocoding is super fast thanks to [STRTree](https://shapely.readthedocs.io/en/2.0.4/strtree.html).
The performance test of geocoding 1 million random points takes 122.900 seconds, which is 0.000122 seconds per point.
Raw data
{
"_id": null,
"home_page": "https://github.com/officeofperformancemanagement/geochatt",
"name": "geochatt",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "data, python",
"author": "Daniel J. Dufour",
"author_email": "daniel.j.dufour@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/83/01/917565cf6428dee06b28a895bbf829073d2a098d657e97838433a3b509e4/geochatt-0.0.1.tar.gz",
"platform": null,
"description": "# geochatt\nUtility Functions for Working with Open GeoSpatial Data about Chattanooga\n\n## features\n- very fast: uses [STRTree](https://shapely.readthedocs.io/en/2.0.4/strtree.html) for super fast reverse geocoding\n- get address from point\n- get city council district from point\n- get municipality from point\n- get zip code from point\n\n## install\n```sh\npip install geochatt\n```\n\n## usage\n```py\nimport geochatt\n\ngeochatt.get_address(longitude=-85.3076591, latitude=35.0432979)\n\"101 E 11TH ST\"\n\ngeochatt.get_city_council_district(longitude=-85.3076591, latitude=35.0432979)\n8\n\ngeochatt.get_municipality(longitude=-85.3076591, latitude=35.0432979)\n\"Chattanooga\"\n\ngeochatt.get_zipcode(longitude=-85.3076591, latitude=35.0432979)\n37402\n```\n\n## performance\nReverse geocoding is super fast thanks to [STRTree](https://shapely.readthedocs.io/en/2.0.4/strtree.html).\nThe performance test of geocoding 1 million random points takes 122.900 seconds, which is 0.000122 seconds per point.\n",
"bugtrack_url": null,
"license": null,
"summary": "Utility Functions for Working with Open GeoSpatial Data about Chattanooga",
"version": "0.0.1",
"project_urls": {
"Download": "https://github.com/officeofperformancemanagement/geochatt/tarball/download",
"Homepage": "https://github.com/officeofperformancemanagement/geochatt"
},
"split_keywords": [
"data",
" python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8301917565cf6428dee06b28a895bbf829073d2a098d657e97838433a3b509e4",
"md5": "d7abac7d20f933ec4f02064e932b763a",
"sha256": "293e98ad27bd4ed52c93d30dbe01f935174b61140a71d713f8009fb5f69424ce"
},
"downloads": -1,
"filename": "geochatt-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "d7abac7d20f933ec4f02064e932b763a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22929374,
"upload_time": "2024-10-28T22:41:18",
"upload_time_iso_8601": "2024-10-28T22:41:18.429620Z",
"url": "https://files.pythonhosted.org/packages/83/01/917565cf6428dee06b28a895bbf829073d2a098d657e97838433a3b509e4/geochatt-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-28 22:41:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "officeofperformancemanagement",
"github_project": "geochatt",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "geochatt"
}