Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshdholtz/clgeocoder-doublelookup

CLGeocoder+DoubleLookup - Give address components, get more address components back (like zip code)
https://github.com/joshdholtz/clgeocoder-doublelookup

Last synced: 10 days ago
JSON representation

CLGeocoder+DoubleLookup - Give address components, get more address components back (like zip code)

Awesome Lists containing this project

README

        

CLGeocoder+DoubleLookup
======================

### Why?
Give address components (address, city, state) and get more info (zip code along with latitude and longitude) in response

### How?
Geocoder.geocode + Geocoder.reverseGeocode

### Example
````objc
#import "CLGeocoder+DoubleLookup.h"

// INPUT: Milwaukee, WI
// OUTPUT: 700–748 N Milwaukee St, 700–748 N Milwaukee St, Milwaukee, WI 53202, United States @ <+43.03889350,-87.90655650> +/- 100.00m

// Optional - Add "Address" to the dictionary
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
[geocoder doubleGeocodeAddressDictionary:@{ @"City" : @"Milwaukee", @"State" : @"WI" } completionHandler:^(NSArray *placemarks, NSError *error) {
NSLog(@"Placemarks - %@", [placemarks objectAtIndex:0]);
}];

````