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.

Source Distribution

geosupport-suggest-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file geosupport-suggest-0.0.2.tar.gz.

File metadata

  • Download URL: geosupport-suggest-0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.2

File hashes

Hashes for geosupport-suggest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f1fc51b81cae09545938ea9008f90b8fab6746710d6bdedc65a349ccc6515aad
MD5 b15cf353754531085d2c08e9fc5b7f5c
BLAKE2b-256 b6c7452bf5a4efc0b5055893a09ef29adf464609cee60ea02826e8045f6816a0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page