homepage Welcome to WebmasterWorld Guest from 54.196.168.78
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque & physics

Webmaster General Forum

    
Contact forms - automatic address from postcode (zip code) entry
automatic address from postcode
brd1984




msg:3827712
 9:56 am on Jan 16, 2009 (gmt 0)

Does anyone know of any available scripts for contact forms which look up a user's address when they input their postcode (zip code)?

I've seen it being used on quite a few sites but i've had no joy in finding out how they do it.

Thanks
Ben

 

danielcer




msg:3827719
 10:13 am on Jan 16, 2009 (gmt 0)

Some places provide APIs that map zip codes to cities and states But, you have to pay for the service.

If you look hard enough, you can probably just find a list you can download somewhere.

[edited by: engine at 10:48 am (utc) on Jan. 16, 2009]
[edit reason] See TOS [/edit]

rocknbil




msg:3827808
 1:52 pm on Jan 16, 2009 (gmt 0)

.... which look up a user's address when they input their postcode (zip code)?

I can't imagine how you'd look up the address from the zip code as there could be millions of addresses within a zip code, but you should be able to write a script that can extrapolate the zip code from the address using the USPS Zip Code Lookup API [usps.com].

There are code samples in the docs to get you started in multiple programming languages.

piatkow




msg:3827895
 4:04 pm on Jan 16, 2009 (gmt 0)

UK postcodes apply to a small set of properties and can be used to offer a pick list of addresses. Typically it would be the number of addresses whose letters the postman could carry in his hand at one time.

You would have to pay for access to the file.

If you are dealing with multiple countries you would need to deal separately with each post office or find a third party processor who has done this for you.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved