<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Directions/DirectionsConstructor",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.Directions/DirectionsConstructor"
  },
  "title" : "new Directions(options)"
}
-->

# new Directions(options)

Creates a directions object with options you provide.

```
constructor(options?: DirectionsConstructorOptions);
```

## Parameters

`options`

An object containing the options for creating a directions object. This parameter is optional.

## Discussion

To request directions, create an instance of the [`Directions`](/documentation/MapKitJS/Directions) object, then call the [`route(request)`](/documentation/MapKitJS/Directions/route) function with a [`DirectionsRequest`](/documentation/MapKitJS/DirectionsRequest) object as the first parameter. The second parameter for [`route(request)`](/documentation/MapKitJS/Directions/route) is a callback function, through which MapKit JS returns the directions response asynchronously.

To return directions in a specific language, set [`language`](/documentation/MapKitJS/DirectionsConstructorOptions/language) in [`DirectionsConstructorOptions`](/documentation/MapKitJS/DirectionsConstructorOptions) when you create an instance of the [`Directions`](/documentation/MapKitJS/Directions) object.

---

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)