geosupport-suggest

Retrieve address suggestions from Geosupport


Keywords
NYC, geocoder, python-geosupport, geosupport, geosupport-suggest, address, python-library, suggestions
License
MIT
Install
pip install geosupport-suggest==0.0.2

Documentation

geosupport-suggest

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

Python 2.7 | 3.4+ Build Status PyPI version

Install

$ pip install geosupport-suggest

or clone this repo, cd into it and

$ pip install .

Usage

>> 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

Requires at least a house number and the first character of a street name. Each suggestion returns the full geosupport result.

>> s.suggestions('100 Gold')
[
    {'First Borough Name': 'STATEN IS', 
    'House Number - Display Format': '100', 
    'First Street Name Normalized': 'GOLD AVENUE', 
    ...}, 
    {'First Borough Name': 'MANHATTAN', 
    'House Number - Display Format': '100', 
    'First Street Name Normalized': 'GOLD STREET', 
    ...},
    {'First Borough Name': 'BROOKLYN', 
    'House Number - Display Format': '100',
    'First Street Name Normalized': 'GOLD STREET',
    ...}
]

# try with borough code
>> s.suggestions('100 Gold', borough_code=1)
[
    {'First Borough Name': 'MANHATTAN', 
    'House Number - Display Format': '100', 
    'First Street Name Normalized': 'GOLD STREET', 
    ...}
]

Contribute

Issues and PRs welcome.

License

MIT