API Reference
RouteObjective
const preferences = { objective: RouteObjective.SHORTEST }Set itinerary.preferences.objective to choose what to prioritize for a driving route.
Values
| Value | Description |
|---|---|
RouteObjective.FASTEST | Favor a shorter estimated travel time. |
RouteObjective.SHORTEST | Favor a shorter driving distance. |