CLLocationGeocoder to return postalCode with zip+4

Originator:gcombs
Number:rdar://14156851 Date Originated:14-Jun-2013 12:34 PM
Status:Duplicate Resolved:
Product:CoreLocation Product Version:iOS 7
Classification:Enhancement Reproducible:Yes
 
14-Jun-2013 12:34 PM Gregory Combs:
Summary:

CLLocationGeocoder currently only returns 5 digit zip codes, even though the coordinates are accurate enough to determine a 9 digit zip code (zip+4). 

Steps to Reproduce:

    CLLocation *location = [[CLLocation alloc] initWithLatitude:37.331742 longitude:-122.030334];
    CLGeocoder *geocoder = [[CLGeocoder alloc] init];
    [geocoder reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error) {
        if (placemarks && [placemarks count]) {
            CLPlacemark *place = placemarks[0];
            NSLog(@"Zip = %@", place.postalCode);  // result = "95014"  instead of "95014-2083"
        }
    }];

Expected Results:

   geocoder should return "95014-2083" for postalCode

Actual Results:

   geocoder instead returns "95014" for postalCode

Regression:

Notes:

   Many REST APIs that deal with political boundaries, voting districts, legislative representation, and demographics often require a zip+4 postal code.  Without a zip+4, you cannot determine with accuracy which precinct or district an address falls into.  Zip+4 is an indication of a specific neighborhood sometimes a specific street block that would otherwise be bifurcated by two different political boundaries.

   In order to overcome this, one must maintain (or subscribe to a service that maintains) a very large database for zip code lookups, increasing the expense (for user's time, or subscription fees) for the overall operation.


14-Jun-2013 12:34 PM Gregory Combs:
'ZipPlus4.zip' was successfully uploaded


20-Jun-2013 11:24 AM Apple Developer Bug Reporting Team :
This bug has been closed as Duplicate. We are aware of this issue and are tracking it under the Bug ID listed below in the Related Problem section of your bug report. To check the status of the original bug report, please visit the Related Problem section of the Problem Detail view of your closed duplicate bug.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!