Skip to main content

Retrieve address suggestions from Geosupport

Project description

geosupport-suggest

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

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', 
    'House Number - Sort Format': '000100000AA', 
    'B10SC - First Borough and Street Code': '52981501010', 
    'First Street Name Normalized': 'GOLD AVENUE', 
    ...}, 
    {'First Borough Name': 'MANHATTAN', 
    'House Number - Display Format': '100', 
    'House Number - Sort Format': '000100000AA', 
    'B10SC - First Borough and Street Code': '12135001010', 
    'First Street Name Normalized': 'GOLD STREET', 
    ...},
    {'First Borough Name': 'BROOKLYN', 
    'House Number - Display Format': '100',
    'House Number - Sort Format': '000100000AA', 
    'B10SC - First Borough and Street Code': '34453001010', 
    'First Street Name Normalized': 'GOLD STREET',
    ...}
]

Contribute

Issues and PRs welcome.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for geosupport-suggest, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size geosupport-suggest-0.0.2.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page