Skip to main content

geosupport-suggest

Retrieve address suggestions from Geosupport using python-geosupport and a single input address.

Python 3.8+ Documentation Status PyPI version

Features

  • Thread-safe memory caching for improved performance
  • Parallel processing of address queries
  • GeoJSON export of geocoding results
  • Address normalization with consistent formatting
  • Borough code validation
  • Rate limiting for API protection
  • Context manager support
  • Batch address processing

Documentation

Full documentation is available at geosupport-suggest.readthedocs.io.

Install

$ pip install geosupport-suggest

or clone this repo, cd into it and

$ pip install .

Quick Start

from geosupport import Geosupport
from suggest import GeosupportSuggest

# create a Geosupport object
g = Geosupport()

# create a GeosupportSuggest object using Geosupport
s = GeosupportSuggest(g)

# Get suggestions
results = s.suggestions('100 Gold')

# Print formatted addresses
for result in results:
    print(s.format_address(result))

Advanced Usage

Caching for improved performance:

# Enable caching
s = GeosupportSuggest(g, use_cache=True)

# First call makes API request
results1 = s.suggestions('100 Gold St')

# Second call uses cache
results2 = s.suggestions('100 Gold St')  # Much faster

Convert results to GeoJSON:

# Get address suggestions
results = s.suggestions('350 5th Ave')  # Empire State Building

# Convert to GeoJSON for mapping
geojson = s.to_geojson(results)

Process multiple addresses:

addresses = [
    '100 Gold St',
    '350 5th Ave',
    {'address': '1 Police Plaza', 'borough_code': 1}  # With borough code
]

# Process all addresses (with parallel execution)
batch_results = s.suggestions_batch(addresses, parallel=True)

Contribute

Issues and PRs welcome. See Contributing for details.

License

MIT

Metadata

Release files for geosupport-suggest 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geosupport-suggest 0.1.0
File Size Uploaded
geosupport_suggest-0.1.0.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geosupport-suggest 0.1.0
File Interpreter ABI Platform
geosupport_suggest-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / geosupport_suggest-0.1.0.tar.gz

Download URL geosupport_suggest-0.1.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
de4cd0300e1b00387601409a90f2e9726bdc0f6e36bf68505e596fff705b98cd
BLAKE2b-256 checksum
How to use checksums
7b3c959bab1f281c19304ff46936fbbbde20021a08f2b63f28f841cc126148eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / geosupport_suggest-0.1.0-py3-none-any.whl

Download URL geosupport_suggest-0.1.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8678e2607bee08ad0e276f0f7b89cf991c3575cf1f154a00ed7764926912f384
BLAKE2b-256 checksum
How to use checksums
6f6f3f53dc592be83f6d12543106a5c65af107f33ef125d6cc17a1f304368d6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page