Python bindings for NYC Geosupport Desktop Edition
Project description
python-geosupport
Geocode NYC addresses locally using Python bindings for NYC Planning's Geosupport Desktop Edition.
Documentation
Check out documentation for installing and usage here.
Features
- Pythonic interface to all Geosupport functions
- Support for both Windows and Linux platforms
- Secure and fast using local geocoding - no API calls required
- Built-in error handling for Geosupport return codes
- Interactive help menu
Compatibility
- Python 3.8+
- Tested on Geosupport Desktop Edition 25a
- Windows (64-bit & 32-bit) and Linux operating systems
Quickstart
pip install python-geosupport
# Import the library and create a `Geosupport` object.
from geosupport import Geosupport
g = Geosupport()
# Call the address processing function by name
result = g.address(house_number=125, street_name='Worth St', borough_code='Mn')
result is a dictionary with the output from Geosupport. For example:
{
'2010 Census Block': '1012',
'2010 Census Tract': '31',
'Assembly District': '65',
'Atomic Polygon': '112',
'B10SC - First Borough and Street Code': '14549001010',
'BOE Preferred B7SC': '14549001',
'BOE Preferred Street Name': 'WORTH STREET',
'BOROUGH BLOCK LOT (BBL)': {
'BOROUGH BLOCK LOT (BBL)': '1001680032',
'Borough Code': '1',
'Tax Block': '00168',
'Tax Lot': '0032'
},
'Blockface ID': '0212261942',
...
}
Examples
See the examples directory and accompanying readme.md.
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
python -m unittest discover) - Run Black formatting (
black .) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the license.txt file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_geosupport-1.1.0.tar.gz.
File metadata
- Download URL: python_geosupport-1.1.0.tar.gz
- Upload date:
- Size: 37.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7798714c725f6e65a4f52808e01965ea107760dec19be2cad60ade3ec12647ff
|
|
| MD5 |
bf63680feaf2dc842c17aa3b6459e90f
|
|
| BLAKE2b-256 |
31ac0ad95fcd87727835448b43f5ad353423f87e458c5f83f9a9c5ee2a913a01
|
File details
Details for the file python_geosupport-1.1.0-py2.py3-none-any.whl.
File metadata
- Download URL: python_geosupport-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 53.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
917a2c5bef54e4711e6688dd3bf440df59c79cbb0efa891212aff0b8eaa74d1a
|
|
| MD5 |
5405de929c6e07f102824f7124a41eb3
|
|
| BLAKE2b-256 |
b62d162ec539f06f3cc32215ce90f968d55c8fb80b0d9a03ae992973f372c9f0
|