Api for zip +4 from address

What is the best api / resource to get zip +4 from an address?

I don’t want something that needs to be downloaded and updated from time to time; I want it to update automatically.

The goal is to find state and federal officials without getting "duplicated" positions.

+5
source share
7 answers

Yahoo has zip + 4 in its API, limiting 5,000 requests per day.

Yahoo GeoCoding

+3
source

Have you tried the Google Maps V3 JavaScript API

UPDATED:

in response to your comment

it's easy, as a result of 1, 2, 3;)

take a look at this:

google map ! ( )

:

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);
    });
});
+6
+2

Endicia . HTTP-. ( , SOAP REST.)

+2
Apple provide brilliant facility to get zip+4code from lattitude and longitude with reverse geocoder -

    - (void)getPlaceMarkInfo
    {
        CLLocationCoordinate2D coordinate;

        coordinate.latitude             = your lattitude;

        coordinate.longitude            = your longitude;

        MKReverseGeocoder *RevGeoCoder  = [[MKReverseGeocoder alloc] initWithCoordinate:coordinate];

        RevGeoCoder.delegate            = self;

        [RevGeoCoder start];
    }

#pragma mark MKReverseGeocoderDelegate:


- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark
{
    NSLog(@"YOUR STATE IS - %@",[placemark.addressDictionary valueForKey:@"State"]);

    NSDictionary *dictAddress = placemark.addressDictionary;

    NSString *strZipPlus4Code = [NSString
                                 stringWithFormat:@"%@-%@",[dictAddress valueForKey:@"ZIP"],
                                                                     [dictAddress valueForKey:@"PostCodeExtension"]];

    strStateName = [placemark.addressDictionary valueForKey:@"State"];
}


- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error
{
    NSLog(@"REVERSE GEOCODER FAILED");

}
+1

, :

  • API USPS , USPS ( : " USPS Web , API USPS USPS." )
  • ZIP / , . ( , )

, -, .

API LiveAddress. , API, , 40 , ZIP + 4 . , . , ( ), LiveAddress for Lists, .

: SmartyStreets, , LiveAddress.

+1

Yahoo BOSS GEO Api:

http://yboss.yahooapis.com/geo/placefinder?location=170+South+Market+St.,+San+Jose,+CA

GET HEADER

OAuth HTTP:

: OAuth = "http://yboss.yahooapis.com/", oauth_consumer_key = "dj0yJmk9QnFUYVRUSWtRZEhsJmQ9WVdrOVFrYzFja2x4TkdNbWNHbzlNVEExTWpFMk1ESTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD1lNA--", oauth_nonce = "ZDQDDVLFCWKCZ0BD", oauth_signature_method = "HMAC-SHA1", oauth_timestamp = "1367827192", oauth_version = "1.0", oauth_signature = "phP2dNiCmvwpK4M6G% 2F85KnnvTXo% 3D"

:

BOSS OAuth HTTP GET. :

oauth_version=1.0 – The standard of OAuth supported by BOSS Geo.

oauth_timestamp= – The timestamp is expressed in the number of seconds since January 1, 1970 00:00:00 GMT. The timestamp value MUST be a positive integer and MUST be equal to or greater than the timestamp used in previous requests. The timestamp can be reused for up to 5 minutes. Important: After 5 minutes a fresh timestamp must be supplied.

oauth_nonce – is a random string, uniquely generated for all requests for a specific timestamp. This helps verify that a request has never been made before and helps prevent replay attacks when requests are made over a non-secure channel (such as HTTP).

oauth_consumer_key= – obtained from YDN during the BOSS project registration process. This is unique to the developer. Please follow the directions on the displayed key page and copy the entire key from YDN. If you do not copy the entire key, this results in a "Consumer Key rejected" error.

oauth_signature_method=HMAC-SHA1 – (specific algorithm used for BOSS OAuth calls).

oauth_signature – can be generated by an OAuth library. A list of supported OAuth libraries is available here: http://oauth.net/code. Over a dozen languages are supported.

zip + 4 Response " ".

0
source

All Articles