API Reference
GeosupportSuggest
- class suggest.GeosupportSuggest(geosupport=None, func='AP', max_workers=3, rate_limit=0, parser_options=None, use_cache=False, cache_size=1000, cache_ttl=3600)[source]
Bases:
objectProvides address suggestions from NYC Geosupport.
- __init__(geosupport=None, func='AP', max_workers=3, rate_limit=0, parser_options=None, use_cache=False, cache_size=1000, cache_ttl=3600)[source]
Initialize GeosupportSuggest.
- Parameters:
geosupport – Geosupport object
func – Function to use (‘AP’ or ‘1B’)
max_workers – Max parallel workers
rate_limit – Seconds between API calls (0 for no limit)
parser_options – Dictionary of options to pass to nyc-parser
use_cache – Enable caching of results
cache_size – Maximum number of items in memory cache
cache_ttl – Time-to-live in seconds for cached items
ThreadSafeMemoryCache
AddressFormatter
Constants
- suggest.VALID_BOROUGH_CODES: Set[int]
Valid borough codes (1-5)
Type Definitions
# Type definitions for common structures
AddressResult = Dict[str, Any]
AddressList = List[AddressResult]
GeoJSON = Dict[str, Any]
NormalizedAddress = Dict[str, Any]
CoordinatePair = Tuple[float, float]