Optimization API
The Mapbox Optimization API returns a duration-optimized route between provided input coordinates. Optimized trips can be retrieved for three different Mapbox routing profiles: mapbox/driving
, mapbox/walking
, and mapbox/cycling
.
A sample Optimization API request looks like:
https://api.mapbox.com/optimized-trips/v1/mapbox/driving/-122.42,37.78;-122.45,37.91;-122.48,37.73?access_token=YOUR_MAPBOX_ACCESS_TOKEN
The Optimization API has optional parameters that can be used to refine the results of a request.
Related resources:
このpageは役に立ちましたか?