开发者

How to check if an address is a business or residential address [closed]

开发者 https://www.devze.com 2023-01-22 11:17 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, softwa开发者_运维问答re libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 5 years ago.

Improve this question

I have a dataset that contains many addresses (60,000-ish entries). I want to classify these addresses into either residential or business addresses.

Does anyone know a good API/Service to get started doing this?

  • I don't think the google maps geocoder can do this at this time.

  • Fedex and UPS both seem to have API's but they are only released to companies that are shipping products (sort of a need to know basis only)

USPS API: https://www.usps.com/nationalpremieraccounts/rdi.htm

Fedex API:http://www.fedex.com/us/developer/web-services/index.html

This is a hobby project, so free or cheap are better! But paid solutions are not out of the question.


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.


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"."


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消