WeaselFox WeaselFox - 25 days ago 9x
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...



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