geosupport-suggest
Retrieve address suggestions from Geosupport using python-geosupport and a single input address.
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geosupport_suggest-0.1.0.tar.gz | 10.0 kB | Without provenance | Details for geosupport_suggest-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geosupport_suggest-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for geosupport_suggest-0.1.0-py3-none-any.whl |
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
|
Security for geosupport-suggest 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.