Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 450
  • Last Modified:

Convert 5 digit zipcodes to zip+4

How I can take a 5 digit zipcode and add on the +4 part? I hear it is faster to ship with the USPS when you have a properly formatted 9 digit zipcode.

Anyone hear the same thing? Thanks!

-Matt
0
mjreine
Asked:
mjreine
  • 2
  • 2
1 Solution
 
Dufo G. BelskiRetired bureaucrat/desktop supportCommented:
Type in an address here and get the 9 digit zip:

http://www.usps.com/zip4/
0
 
mjreineAuthor Commented:
I need an ASP program or a COM component or some way to programmatically do this. Do you know how they calculate the +4 part?

Thanks,

-Matt
0
 
DexstarCommented:
mjreine:

> How I can take a 5 digit zipcode and add on the +4 part? I hear it is faster
> to ship with the USPS when you have a properly formatted 9 digit zipcode.

> Anyone hear the same thing? Thanks!

You can't just "look up" the other 4 digits, unless you know the entire address.  If you know the entire Address, you can use this web site to look up the +4 digits:
     http://www.usps.com/zip4/welcome.htm

But that won't help you very much if you have a bunch of addressed.  Forunately, the USPS has a web service that you can hook into to do the lookups for you.  Here is a link with more information:
     http://www.usps.com/webtools/address.htm

That site will also help you correct addressing errors and things like that, so if shipping speed is really important, then that will help out too.

Hope that helps,
Dex*
0
 
DexstarCommented:
I wish there were a COM object to point you at, but there really isn't.  However, this page has enough samples to really get you going:
     http://www.usps.com/webtools/htm/Address-Information.htm

Dex*

0
 
mjreineAuthor Commented:
Awesome! Thanks Dex..

-Matt
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now