Go Back   CodingForums.com > :: Server side development > PHP > Post a PHP snippet

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-02-2010, 02:33 AM   PM User | #1
codebyter
New Coder

 
Join Date: Aug 2010
Location: FL
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
codebyter is an unknown quantity at this point
Free Scripts - PHP Street Validation – Commercial or Residential?

#include <hello_world.h>

Link to Page: http://codebyter.com/2010/10/30/php-...r-residential/

Quote:
I have been working on a PHP script to supply the answer to whether an address is classified as “residential” or “commercial.” Originally, I started designing scripts around UPS’s validation services. That’s where I went wrong.

UPS offers two types of address validation web services (both XML-based). The first is an Address Validation (AV) tool, which allows you to use their web service to determine whether or not an address is valid by supplying city, state, and zip. To my knowledge, the AV web service only works for U.S. addresses. The second service is XAV, street level address validation, which allows you to query their servers for address validations, given the address supplied exists within New York or California. Thats great and all, but what about the rest of the country?

To prevent some poor individual from going through the same headaches as I went through, and for the general purpose of building my code collection, I have uploaded the UPS address validation script for you to check out along with the FedEx street level address validation script.

Needless to say, after spending further time researching, I have concluded that FedEx currently has the best street validation web service. FedEx’s version of address validation provides the following features:

* Provides street-level matches
* Contains a growing database of company listings to improve your results (not all companies are currently
listed)
* Receives monthly updates to its address database
* Checks addresses within the U.S., Puerto Rico, and Canada.
* Distinguishes between business and residential addresses in the U.S. if an exact match is found
* Is Coding Accuracy Support System (CASS)-certified (a service and rating system for mailers that measures and helps to improve address accuracy)
* Checks up to 100 addresses in one Web Service request

Enough said.
I just wanted to repost my thoughts about this and share some code with the world. Maybe it will save you some frustrations. If you found this helpful, all I ask is that you leave me a comment on my site Enjoy!
codebyter is offline   Reply With Quote
Old 09-30-2011, 08:02 PM   PM User | #2
elionrails
New to the CF scene

 
Join Date: Sep 2011
Location: Austin TX
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
elionrails is an unknown quantity at this point
I tried following the links you posted but it looks like your article is already down

Anyway, I would have to agree that FedEx's script is way much better. But only for small requests. If you have a bunch of addresses to validate, or maybe would like to integrate validation into your software, I would recommend signing up for a web service like http://www.serviceobjects.com/produc...-validation-us
elionrails is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:36 PM.


Advertisement
Log in to turn off these ads.