Directions API Playground
The Mapbox Directions API produces turn-by-turn instructions using four different Mapbox routing profiles: mapbox/driving-traffic
, mapbox/driving
, mapbox/walking
, and mapbox/cycling
.
To generate a Directions API request with this playground, follow one of these two methods:
-
Method 1: Enter values for the parameters in the left panel. Note that the only two required parameters are the origin and destination coordinates. Once they are entered, the playground will make a call to the Directions API and display the request URL and the response data.
-
Method 2. Click anywhere on the map to specify the origin coordinates, then click another location to specify the destination coordinates. Once both are specified, the playground will make a call to the Directions API and display the request URL and the response data.