A block to be called when a geocoding request is complete.
- iOS 5.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Location
Upon completion of a geocoding request, a block of this form is called to give you a chance to process the results. The parameters of this block are as follows:
Contains an array of
CLPlacemarkobjects. For most geocoding requests, this array should contain only one entry. However, forward-geocoding requests may return multiple placemark objects in situations where the specified address could not be resolved to a single location.
If the request was canceled or there was an error in obtaining the placemark information, this parameter is
nilor an error object indicating why the placemark data was not returned. For a list of possible error codes, see