Skip to main content

Python bindings for NYC Geosupport Desktop Edition

Project description

python-geosupport

Build status PyPI version 3.8+

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (python -m unittest discover)
  5. Run Black formatting (black .)
  6. Commit your changes (git commit -m 'Add some amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

License

This project is licensed under the MIT License - see the license.txt file for details

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

python_geosupport-1.1.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_geosupport-1.1.0-py2.py3-none-any.whl (53.0 kB view details)

Uploaded Python 2Python 3

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

Hashes for python_geosupport-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7798714c725f6e65a4f52808e01965ea107760dec19be2cad60ade3ec12647ff
MD5 bf63680feaf2dc842c17aa3b6459e90f
BLAKE2b-256 31ac0ad95fcd87727835448b43f5ad353423f87e458c5f83f9a9c5ee2a913a01

See more details on using hashes here.

File details

Details for the file python_geosupport-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_geosupport-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 917a2c5bef54e4711e6688dd3bf440df59c79cbb0efa891212aff0b8eaa74d1a
MD5 5405de929c6e07f102824f7124a41eb3
BLAKE2b-256 b62d162ec539f06f3cc32215ce90f968d55c8fb80b0d9a03ae992973f372c9f0

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