<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKDirections/Request/isDirectionsRequest(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKDirectionsRequest(cm)isDirectionsRequestURL:"
  },
  "title" : "isDirectionsRequest(_:)"
}
-->

# isDirectionsRequest(_:)

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

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

## Parameters

`url`

The URL the system provides  to your app.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the URL contains a directions request that your app needs to display to the user, or <doc://com.apple.documentation/documentation/Swift/false> if it doesn’t.

## See Also

  [Location and Maps Programming Guide](https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009497)



---

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)
