Google’s Zip Code Lookup

zipcode_check1

So, I was using one of Google’s sign up forms, and I noticed that it gave me a nice tip – The valid zip codes for my state! Along with some sample zip codes for my country (usa). I opened up the firebug console and checked out the ajax call – it was this: https://www.google.com/adsense/addrform/resources?kind=country&code=US

That’s really cool. It returned an XML document with all the state’s valid zipcodes. While it may be unreliable to make this same AJAX call from within your own web application every time, the XML document itself is quite valuable with the zip code validation.

Download that XML document here.

zipcode_check2

Related Posts:

  • No Related Posts
This entry was posted in Tech Tips, Web Development and tagged , , , . Bookmark the permalink.

One Response to Google’s Zip Code Lookup

  1. Andreia says:

    这个也用过, 点击测试就会有啥提示 一长串代码错误啥的。。。你也是win主机么? 我一点测试邮件就是An error was encountered while tiyrng to send the test e-mail.SMTP Error: Could not connect to SMTP host.Failed to connect to serverUnable to find the socket transport “ssl” – did you forget to enable it when you configured PHP?这个代码。。。我专门注册gmail邮箱也这样。。。

Leave a Reply

Your email address will not be published. Required fields are marked *