Directions API
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
.
A sample Directions API request looks like:
https://api.mapbox.com/directions/v5/mapbox/driving/-122.42,37.78;-77.03,38.91?access_token=YOUR_MAPBOX_ACCESS_TOKEN
The Directions API has optional parameters that can be used to refine the results of a request.
Related resources:
- Directions API documentation
- Getting started with the Directions API tutorial
- Mapbox GL JS example using the
mapbox-gl-directions
plugin for the Directions API
このpageは役に立ちましたか?