“parseaddress”npm库的Python端口
addresser的Python项目详细描述
地址解析并规范化街道地址和交叉口。它是节点包的一个端口, parse-address,它又是PERL包的一个端口, Geo::StreetAddress::US。在
来自Geo::StreetAddress::US描述:
Geo::StreetAddress::US is a regex-based street address and street intersection parser for the United States. Its basic goal is to be as forgiving as possible when parsing user-provided address strings. Geo::StreetAddress::US knows about directional prefixes and suffixes, fractional building numbers, building units, grid-based addresses (such as those used in parts of Utah), 5 and 9 digit ZIP codes, and all of the official USPS abbreviations for street types and state names…
安装
地址器可从pip安装:
$ pip install addresser
使用
^{pr2}$Result
{'number':'1005','prefix':'N','street':'Gravenstein','type':'Hwy','city':'Sebastopol','state':'CA','zip':'95472'}
- 项目
标签: