WeaselFox WeaselFox - 1 year ago 135
Python Question

is there a library for parsing US addresses?

I have a list of US addresses I need to break into city,state, zip code,state etc.

example address : "16100 Sand Canyon Avenue, Suite 380
Irvine, CA 92618"

Does anyone know of a library or a free API to do this? Google/Yahoo geocoder is forbidden to use by the TOS for commercial projects..

It would be awesome to find a python library that preforms this...


Answer Source

Pyparsing has a bunch of functionality for parsing street addresses, check out an example for this here: http://pyparsing.wikispaces.com/file/view/streetAddressParser.py

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download