I am trying to get locations from multiple address strings.
I've used below code for single string.
NSString *addressStr = @"Neeru'sEmporio,RoadNumber36,Venkatagiri,Hyderabad,AndhraPradesh,India"; //String after removing spaces
[[CLGeocoder new] geocodeAddressString:orgin completionHandler:^(NSArray *placemarks, NSError *error)
CLPlacemark *placemark = [placemarks objectAtIndex:0];
NSLog(@"%@",[NSString stringWithFormat:@"%@",[placemark description]]);
NSLog(@"There was a forward geocoding error\n%@",[error localizedDescription]);
How to get two or more locations from multiple address strings at a time. i.e., want individual lat long for every individual string and after getting all locations I need to run some other code.
Please help. Thanks in Advance.