---
title: CLGeocodeCompletionHandler
framework: corelocation
role: symbol
role_heading: Type Alias
path: corelocation/clgeocodecompletionhandler
---

# CLGeocodeCompletionHandler

A block to be called when a geocoding request is complete.

## Declaration

```swift
typealias CLGeocodeCompletionHandler = ([CLPlacemark]?, (any Error)?) -> Void
```

## Discussion

Discussion 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: If the request was canceled or there was an error in obtaining the placemark information, this parameter is nil.

## See Also

### Reverse geocoding a location

- [reverseGeocodeLocation(_:preferredLocale:completionHandler:)](corelocation/clgeocoder/reversegeocodelocation(_:preferredlocale:completionhandler:).md)
- [reverseGeocodeLocation(_:completionHandler:)](corelocation/clgeocoder/reversegeocodelocation(_:completionhandler:).md)
