来自地址的 zip +4 的 api
从地址获取 zip +4 的最佳 api/资源是什么?
我不想要需要时不时下载和更新的东西;我想要一个自动更新的。
目标是查找州和联邦官员而不得到“重复”的职位。
What's the best api/resource to get a zip +4 from an address?
I don't want something that needs to be downloaded and updated from time to time; I want one that's updated automagically.
The goal is to look up state and federal officials without getting "duplicate" positions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
您是否尝试过 Google Maps JavaScript API V3
更新:
针对您的评论,
这很容易,因为计数 1, 2 , 3 ;)
看看这个:
您需要寻找谷歌地图地理编码服务! (视口偏置)
示例代码为:
使用 jQuery
have you tried Google Maps JavaScript API V3
UPDATED:
in responce to your comment
this is easy as count 1, 2 , 3 ;)
take a look at this:
you need to looking for google map geocoding service! ( Viewport Biasing )
example code would be:
using jQuery
雅虎的 API 中有一个 zip + 4,每天限制 5000 个请求。
雅虎地理编码
Yahoo has a zip + 4 in thier API, limit 5000 request per day.
Yahoo GeoCoding
USPS 有一个用于查找/检查邮政编码(除其他外)的 API。
http://www.usps.com/webtools/address.htm
The USPS has an API for finding/checking zip codes (among other things).
http://www.usps.com/webtools/address.htm
我在过去的工作中使用过 Endicia。它是一个基于网络 HTTP 的 API。 (我不记得是 SOAP 还是 REST。)
I've used Endicia at past jobs. It is a network HTTP-based API. (I can't remember if it was SOAP or REST.)
之前的答案包含了一些非常好的信息,最重要的是:
您还说过您想要一些不需要安装和保持更新的东西。
考虑到这些条件,我建议使用 LiveAddress API。它是一个基于云的自动更新 API,可返回您地址上的 ZIP+4 数据以及 40 多个其他数据点。它每秒可以处理数千个地址,因此速度超快且易于使用。如果您有一份想要使用的地址列表(而不是一次一个),您可能需要 LiveAddress for Lists,让您可以一次上传和处理整个列表。
披露:我在 SmartyStreets 工作,这是一家提供 LiveAddress 的公司。
Previous answers have included some really good information, most importantly:
You also said you want something that doesn't need to be installed and kept updated.
With those qualifications in mind, I would suggest LiveAddress API. It's a cloud-based, automatically updated API that returns, among over 40 other datapoints, ZIP+4 data on your addresses. It can handle thousands of addresses per second, so it's super-fast and easy to use. If you have a list of address you want to work though (rather than one at a time), you might want LiveAddress for Lists, which lets you upload and process a whole list at once.
Disclosure: I work at SmartyStreets, the company that provides LiveAddress.
参考 Yahoo BOSS GEO Api:
http://yboss.yahooapis.com/geo/placefinder?location=170+South+Market+St.,+San+Jose,+CA
使用以下授权 HEADER 发出 GET 请求
使用 OAuth 的示例在 HTTP 标头中:
授权:OAuth 领域 =“http://yboss.yahooapis.com/”,oauth_consumer_key =“dj0yJmk9QnFUYVRUSWtRZEhsJmQ9WVdrOVFrYzFja2x4TkdNbWNHbzlNVEExTWpFMk1ESTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQ meD1lNA--",oauth_nonce="ZDQDDVLFCWKCZ0BD",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1367827192", oauth_version="1.0",oauth_signature="phP2dNiCmvwpK4M6G%2F85KnnvTXo%3D"
其中:
BOSS Geo 查询的身份验证需要 HTTP 标头中的 OAuth 信息或通过 GET 请求中的参数。授权需要六个元素:
您将在“邮政编码”键下的响应中获得 zip+4 代码。
In reference of Yahoo BOSS GEO Api:
http://yboss.yahooapis.com/geo/placefinder?location=170+South+Market+St.,+San+Jose,+CA
Make a GET request with following authorization HEADER
Example of using OAuth in HTTP Header:
Authorization: OAuth realm="http://yboss.yahooapis.com/",oauth_consumer_key="dj0yJmk9QnFUYVRUSWtRZEhsJmQ9WVdrOVFrYzFja2x4TkdNbWNHbzlNVEExTWpFMk1ESTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD1lNA--",oauth_nonce="ZDQDDVLFCWKCZ0BD",oauth_signature_method="HMAC-SHA1",oauth_timestamp=" 1367827192",oauth_version="1.0",oauth_signature="phP2dNiCmvwpK4M6G%2F85KnnvTXo%3D"
where:
Authentication for BOSS Geo queries requires OAuth information in the HTTP header OR through parameters in the GET request. There are six elements that are required for authorization:
You will get zip+4 code in Response under "postalcode" key.