---
title: cancel()
framework: mapkit
role: symbol
role_heading: Instance Method
path: mapkit/mkgeocodingrequest/cancel()
---

# cancel()

A function you call to cancel a geocoding request that’s in progress.

## Declaration

```swift
func cancel()
```
