邮寄地址验证等。从邮政编码获取县
如今,网站在幕后执行一些地址验证似乎相当普遍。 例如,通常填写邮政编码的 4 位扩展名。除了填写 4 位邮政编码扩展之外,我还想知道该地址属于哪个县。
这将在 ASP.NET 3.5 应用程序中使用,该应用程序已经具备 ASP.NET AJAX 和 jQuery 的所有挂钩。
哪些服务可以实现这一点? Web 服务、第 3 方包含等
UI 结构
ADDRESS_LINE1
ADDRESS_LINE2
CITY
STATE
ZIP
It seems fairly common today for websites to perform some address verification behind the scenes. For example, the 4 digit extension on zip codes is commonly filled in. In addition to filling in the 4 digit zip code extension, I would like to know what county the address belongs to.
This will be utilized in an ASP.NET 3.5 application that already has all the hooks in place for ASP.NET AJAX along with jQuery.
What services out there would allow for this to be done? Web services, 3rd party includes, etc.
UI Structure
ADDRESS_LINE1
ADDRESS_LINE2
CITY
STATE
ZIP
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
如果您有现金,NetAddress 是为 .NET 构建的。
之前也有人问过这个问题:这里。
If you've got cash, NetAddress is built for .NET.
It's also been asked on SO before: here.
这是旧的,但如果它可以帮助某人,那么我的时间就花得值了。 听起来您正在寻找的东西可以通过两种方式来完成。
1 - 如果您只想根据地址附加县,您可以使用简单的邮政编码/县数据库来完成此操作。
2 - 如果您想要标准化地址、验证地址,然后向其中添加县,您将需要提供经常更新的 USPS 数据的服务。 这是我们称为 LiveAddress 的标准地址验证 API 的一部分。 LiveAddress
我在一家名为 Qualifiedaddress 的地址验证公司工作。
This is old, but if it can help someone, then my time was well spent. It sounds like what you are looking for can be accomplished in two ways.
1 - If you just want to append the county, based on the address, you can do this with a simple ZIP Code/County database.
2 - If you want to standardize the address, verify it, and then add the county to it, you'll need a service that provides frequently updated USPS data. This is part of our standard address verification API called LiveAddress. LiveAddress
I work for an address verification company called qualifiedaddress.
美国邮政服务网站列出了许多地址验证服务。Publication 28 (PDF) 是美国地址的寻址标准。 不幸的是,它比您的架构更复杂。
The US Postal Service's website lists many address verification services.Publication 28 (PDF) is the addressing standard for US addresses. Unfortunately, it's more complicated than your schema.
根据您需要的许可证选项,UPS 可能是免费的。
Depending on the license option you need UPS can be free.
有很多服务。 我们通过联邦快递进行运输,因此我们使用他们的“地址验证服务”。 其 API 的 Python 包装器代码可以在此处找到。 FedEx 的手册可以在此处< /a>.
还有其他一些,例如 minfraud。 您可以传递送货和账单地址、电话号码、电子邮件、IP 地址等字段。查看更多 这里。 根据提供的信息,您将收到如下所示的响应:
distance=0;countryMatch=Yes;countryCode=US;freeMail=No;anonymousProxy=No;binMatch=NA;binCountry=;err=;proxyScore =0.00;ip_region=CA;ip_city=山景城;ip_latitude=37.3860;ip_longitude=-122.0838;binName=;ip_isp=Google;ip_org=Google;binNameMatch=NA;binPhoneMatch=NA;binPhone=;custPhoneInBillingLoc=;highRiskCountry=否; querysRemaining=4408;cityPostalMatch=;shipCityPostalMatch=;maxmindID=JBRH7OXI;ip_asnum=AS15169 Google Inc.;ip_userType=business;ip_countryConf=70;ip_regionConf=13;ip_cityConf=10;ip_postalCode=94040;ip_postalConf=;ip_accuracyRadius=999;ip_netSpeedCell=公司;ip_metroCode=807;ip_areaCode=650;ip_timeZone=美国/洛杉矶;ip_regionName=加利福尼亚州;ip_domain=;ip_countryName=美国;ip_ContinentalCode=NA;ip_corporateProxy=否;riskScore=34.0;预付费=;minfraud_version=1.3;service_level=标准
MinFraud AVS 检查更适合确定在您网站上开展业务的客户是否值得信赖。
There are many services. We perform our shipping through FedEx so we use their "Address Validation Service". The wrapper code to their API in python can be found here. The manual from FedEx can fe found here.
The are others like minfraud. You can pass fields such as shipping and billing address, phone numbers, emails, ip address, etc.. See more here. Based on the provided information, you will get a response that looks like this:
distance=0;countryMatch=Yes;countryCode=US;freeMail=No;anonymousProxy=No;binMatch=NA;binCountry=;err=;proxyScore=0.00;ip_region=CA;ip_city=Mountain View;ip_latitude=37.3860;ip_longitude=-122.0838;binName=;ip_isp=Google;ip_org=Google;binNameMatch=NA;binPhoneMatch=NA;binPhone=;custPhoneInBillingLoc=;highRiskCountry=No;queriesRemaining=4408;cityPostalMatch=;shipCityPostalMatch=;maxmindID=JBRH7OXI;ip_asnum=AS15169 Google Inc.;ip_userType=business;ip_countryConf=70;ip_regionConf=13;ip_cityConf=10;ip_postalCode=94040;ip_postalConf=;ip_accuracyRadius=999;ip_netSpeedCell=Corporate;ip_metroCode=807;ip_areaCode=650;ip_timeZone=America/Los_Angeles;ip_regionName=California;ip_domain=;ip_countryName=United States;ip_continentCode=NA;ip_corporateProxy=No;riskScore=34.0;prepaid=;minfraud_version=1.3;service_level=standard
MinFraud AVS check is more geared towards figuring out if a customer that is conducting business on your site is trustworthy.