What's the best api/resource to get a zip +4 from an address?
I don't want something that needs to be downloaded and updated from time to time; I want one that's updated automagically.
The goal is to look up state and federal officials without getting "duplicate" positions.
A ZIP code API, also known as a ZIP code lookup, makes it possible to programmatically look up information using a ZIP code as a unique identifier. In North America, all major shipping carriers including USPS, Canada Post, FedEx, DHL, and UPS maintain various APIs with corresponding documentation.
Also called “plus-four codes”, “add-on codes”, or “add-ons”, the ZIP+4 code starts with the standard five-digit ZIP Code. The four extra numbers are added after a hyphen to complete the ZIP+4. So what do the extra numbers mean? These last 4 digits represent specific delivery routes within delivery areas.
ZIP code lookup The request format is: http://maps.googleapis.com/maps/api/geocode/json?address=ZIP_CODE&key=YOUR_API_KEY will, and in the response you get a lot of information, including for our purposes, that 92101 is the postal code for San Diego, California.
have you tried Google Maps JavaScript API V3
UPDATED:
in responce to your comment
this is easy as count 1, 2 , 3 ;)
take a look at this:
- http://maps.google.com/maps/api/geocode/json?address=Winnetka&sensor=false
you need to looking for google map geocoding service! ( Viewport Biasing )
- http://code.google.com/intl/it-IT/apis/maps/documentation/geocoding/
example code would be:
using jQuery
$(function() {
$.getJSON("http://maps.google.com/maps/api/geocode/json?address=Winnetka&sensor=false",
function(data) {
var zip_code = data.results[0].long_name;
alert(zip_code);
});
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With