如何检查地址是商业地址还是住宅地址

发布于 2024-09-29 14:20:34 字数 1539 浏览 17 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

刘备忘录 2024-10-06 14:20:34

如前所述,RDI 是最佳选择。 RDI 代表“住宅交付指示器”,它可以告诉您某个地址是住宅地址还是商业地址。唯一的问题是您必须是开发人员才能使用它,并且您必须拥有标准化和经过认证的地址,更不用说 USPS 每年数百美元的许可费了。一旦你得到它并编写了一个解决方案,你只需给它一个带有任何旧邮政编码的地址并期望它能够工作。地址必须具有完整的 12 位送货点条形码。

或者,您可以请服务提供商做同样的事情,并支付大约 50-100 美元以获得适合您的尺寸的列表。

全面披露:我是 SmartyStreets 的创始人。我们的产品中包含 RDI,无需额外付费。这意味着只需将您的列表拖到我们的网站并在几秒钟内处理并返回即可。我们还提供地址验证网络服务 API,它将返回住宅/企业地址指示器让您知道您正在使用的地址类型。

As mentioned previously, RDI is the way to go. RDI stands for "residential delivery indicator" and it tells you whether an address is residential or commercial. The only issue with that is you have to be a developer to use it and you have to have standardized and certified addresses, not to mention the annual licensing fee from the USPS for hundreds of dollars. Once you've got it and programmed a solution, you can just give it an address with any old ZIP and expect it to work. The address must have the full 12-digit delivery point barcode.

Or you could use a service provider to do the same thing and pay about $50-100 for a list your size.

Full disclosure: I'm the founder of SmartyStreets. We have RDI included into our offering at no extra charge. This means it's as simple as dragging your list to our website and having it processed and back in seconds. We also offer an address verification web service API which will returns the residential/business indicator to let you know the kind of address you're working with.

半葬歌 2024-10-06 14:20:34

Whitepages 声称他们允许您在他们的 API 中执行此操作。对于每天最多 200 个查询的业余爱好,它是免费的。您将查询分区类型。

地址 ID 数据结构包含一个“用途”字段,该字段被描述为“仅对美国地址 LocationType 有效。这表明美国邮政服务对该地址主要是“商业”还是“住宅”的看法。

Whitepages claims they let you do that in their API. For hobby purposes of up to 200 queries per day, it's free. You would query zoning type.

The Address ID Data Structure contains a "usage" field, which is described as "Only valid for US address LocationType. This indicates the US Postal Service opinion about whether this address is primarily a "Business" or "Residential"."

蓝颜夕 2024-10-06 14:20:34

查看 API http://compass.webservius.com

它列出了 16+ 百万家企业美国(旨在成为完整的企业清单)。如果没有地址,很可能是居住地址。

Take a look at the API at http://compass.webservius.com

It's a listing of 16+ million businesses in the US (aims to be a complete business listing). If an address isn't there, chances are it's a residential address.

关于从前 2024-10-06 14:20:34

这有点像黑客,但为什么不编写一个脚本来检查地址的第一行是否包含人口普查列表中的任何姓氏呢?这应该会为您提供大部分居住地址。假设该人/企业的名称是您拥有的地址的一部分。

This is a bit of a hack, but why not write a script to check to see if the first line of the address contains any of the last names from the census list? That should get you most of the residential addresses. Assuming the person's/business's name is part of the address you have.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文