是否有用于解析美国地址的库? [英] 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.
示例地址:"16100 Sand Canyon Avenue,Suite 380 尔湾,CA 92618"
example address : "16100 Sand Canyon Avenue, Suite 380 Irvine, CA 92618"
有人知道图书馆或免费的API可以做到这一点吗? TOS禁止将Google/Yahoo地理编码器用于商业项目.
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..
找到执行此操作的python库真是棒极了.
It would be awesome to find a python library that preforms this.
推荐答案
Pyparsing
具有解析街道地址的功能,请在此处查看示例:
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
这篇关于是否有用于解析美国地址的库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!