---
title: new Directions(options)
framework: mapkitjs
role: symbol
role_heading: Constructor
path: mapkitjs/directions/directionsconstructor
---

# new Directions(options)

Creates a directions object with options you provide.

## Declaration

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

## Parameters

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

## Discussion

Discussion To request directions, create an instance of the Directions object, then call the route(request) function with a DirectionsRequest object as the first parameter. The second parameter for route(request) is a callback function, through which MapKit JS returns the directions response asynchronously. To return directions in a specific language, set language in DirectionsConstructorOptions when you create an instance of the Directions object.

## See Also

### Creating a directions object

- [DirectionsConstructorOptions](mapkitjs/directionsconstructoroptions.md)
