<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/DirectionsConstructorOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Interface",
  "symbol" : {
    "kind" : "Interface",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "struct/mapkit.DirectionsConstructorOptions"
  },
  "title" : "DirectionsConstructorOptions"
}
-->

# DirectionsConstructorOptions

Options that you may provide when creating a directions object.

```
interface DirectionsConstructorOptions
```

## Overview

Use [`DirectionsConstructorOptions`](/documentation/MapKitJS/DirectionsConstructorOptions) to set options when creating a [`Directions`](/documentation/MapKitJS/Directions) object.

If you set `language` to a language ID, such as `fr-CA` or `en-GB`, MapKit JS returns step-by-step directions in the specified language, if available. If you don’t set `language` when initializing a [`Directions`](/documentation/MapKitJS/Directions) object, the directions default to the language ID you provide when initializing the map with [`init(options)`](/documentation/MapKitJS/mapkit/init). If the map doesn’t have a specified language upon initialization, MapKit JS returns directions in the browser’s language setting.

Set the `language` option when creating a [`Directions`](/documentation/MapKitJS/Directions) object as in the code below:

```javascript
const directions = new mapkit.Directions({
    language: "en-GB"
});
```

## Topics

### Initializing language

[`language?: string;`](/documentation/MapKitJS/DirectionsConstructorOptions/language)

A language ID that determines the language for route information.



---

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)