---
title: "isDirectionsRequest(_:)"
framework: mapkit
role: symbol
role_heading: Type Method
path: "mapkit/mkdirections/request/isdirectionsrequest(_:)"
---

# isDirectionsRequest(_:)

Returns a Boolean value that indicates whether the specified URL contains a directions request.

## Declaration

```swift
class func isDirectionsRequest(_ url: URL) -> Bool
```

## Parameters

- `url`: The URL the system provides to your app.

## Return Value

Return Value true if the URL contains a directions request that your app needs to display to the user, or false if it doesn’t.

## See Also

### Related Documentation

- [Location and Maps Programming Guide](apple-archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction.md)

### Creating a directions request object

- [init(contentsOfURL:)](mapkit/mkdirections/request/init(contentsofurl:).md)
