Handle reverse geocoding errors, page 575

Not sure where in the code this is suppose to be placed. I think it belongs in updateLabels()

➤ Replace the contents of the geocoding closure with the following:

self.lastGeocodingError = error
if error == nil, let places = placemarks, !places.isEmpty {
self.placemark = places.last!
} else {
self.placemark = nil
}
self.performingReverseGeocoding = false
self.updateLabels()

This topic was automatically closed after 166 days. New replies are no longer allowed.