From 55402b2c6c6677614cf78553ab2ae3c01cf4f8f0 Mon Sep 17 00:00:00 2001 From: Isaac Schmidt Date: Mon, 22 Oct 2018 13:30:58 -0400 Subject: [PATCH] Invokes completion handler when using Apple Geocoder. --- LMGeocoder/LMGeocoder.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LMGeocoder/LMGeocoder.m b/LMGeocoder/LMGeocoder.m index cc56cda..f6233d8 100755 --- a/LMGeocoder/LMGeocoder.m +++ b/LMGeocoder/LMGeocoder.m @@ -204,7 +204,10 @@ - (void)reverseGeocodeCoordinate:(CLLocationCoordinate2D)coordinate if (!error && placemarks.count) { // Request successful --> Parse response results - [self parseGeocodingResponseResults:placemarks service:kLMGeocoderAppleService]; + NSArray *parsedResults = [self parseGeocodingResponseResults:placemarks service:kLMGeocoderAppleService]; + if (handler) { + handler(parsedResults, nil); + } } else { // Request failed --> Return error