Class

mapkit.Directions

An object that provides directions and estimated travel time based on the route you provide.

Declaration

interface mapkit.Directions

Topics

Creating a Directions Object

mapkit.Directions

Creates a directions object with options you provide.

DirectionsConstructorOptions

Options that you may provide when creating a directions object.

Getting Directions

route

Retrieves directions and estimated travel time based on the specified start and end points.

DirectionsRequest

The requested start and end points for a route, as well as the planned mode of transportation.

DirectionsResponse

The directions and estimated travel time returned for a route.

Route

Information about a route, including step-by-step instructions, distance, and estimated travel time.

RouteStep

A single route between a requested start and end point.

Canceling a Directions Request

cancel

Cancels a previous request for route directions.