Does anyone know anything about Geocode forwarding. I am trying to take a address string bounce it against the geocoder and return the latitude and longitude. I tried the following code but it does not like the info below the block. Does anyone have any suggestions?
//Geocoding
NSString *breweryaddress = [NSString stringWithFormat:@"%@ %@ %@ ", name.text, addressid.text, csz.text];
CLGeocoder *geocoder = [[[CLGeocoder alloc] init] autorelease];
[geocoder geocodeAddressString:breweryaddress completionHandler:^
(NSArray *placemarks, NSError *error)
{ }];
//code to grab the lat / lon
CLPlacemark *placemarks = [placemarks objectAtIndex:0];
lat = placemarks.latitude;
lon = placemarks.longitude;