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:


The Optimization API has optional parameters that can be used to refine the results of a request.

Related resources:

Was this page helpful?