<!--
{
  "availability" : [
    "iOS: 11.0.0 - 26.0.0",
    "iPadOS: 11.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.13.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 4.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocation",
  "identifier" : "/documentation/CoreLocation/CLGeocoder/geocodePostalAddress(_:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Location",
      "CoreLocation"
    ],
    "preciseIdentifier" : "c:objc(cs)CLGeocoder(im)geocodePostalAddress:completionHandler:"
  },
  "title" : "geocodePostalAddress(_:completionHandler:)"
}
-->

# geocodePostalAddress(_:completionHandler:)

Submits a forward-geocoding requesting using the specified Contacts framework information.

```
func geocodePostalAddress(_ postalAddress: CNPostalAddress, completionHandler: @escaping @Sendable ([CLPlacemark]?, (any Error)?) -> Void)
```

## Parameters

`postalAddress`

A postal address from the Contacts framework. The address should be specified in the user’s current locale.

`completionHandler`

The handler block to execute with the results. The geocoder executes this handler regardless of whether the request was successful or unsuccessful. For more information on the format of this block, see [`CLGeocodeCompletionHandler`](/documentation/CoreLocation/CLGeocodeCompletionHandler).

## Discussion

> Important:
> You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration:
> 
> ```swift
> func geocodePostalAddress(_ postalAddress: CNPostalAddress) async throws -> [CLPlacemark]
> ```
> 
> For information about concurrency and asynchronous code in Swift, see <doc://com.apple.documentation/documentation/Swift/calling-objective-c-apis-asynchronously>.

This method submits the specified location data to the geocoding server asynchronously and returns. When the request completes, the geocoder executes the provided completion handler on the main thread.

After initiating a forward-geocoding request, do not attempt to initiate another reverse- or forward-geocoding request. Geocoding requests are rate-limited for each app, so making too many requests in a short period of time may cause some of the requests to fail. When the maximum rate is exceeded, the geocoder passes an error object with the value [`network`](/documentation/CoreLocation/CLError-swift.struct/network) to your completion handler.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)