Contents

DirectionsResponse

The directions and estimated travel time that return for a route.

Declaration

interface DirectionsResponse

Mentioned in

Overview

To get directions, create an instance of Directions and call the route(request, callback) method.

When your code calls the route(request, callback) function, MapKit JS returns a DirectionsResponse asynchronously via a callback function. MapKit JS invokes the callback function with two arguments, error and data on failure and success. The data parameter is a DirectionsResponse object, and the error parameter contains an error code and text description of the error.

Topics

Directions response

See Also

Getting directions