是否有用于解析美国地址的库? [英] Is there a library for parsing US addresses?

查看:109
本文介绍了是否有用于解析美国地址的库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我需要分为城市,州,邮政编码,州等的美国地址列表.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆