Mapbox Shortest path for routing API

375 Views Asked by At

For "driving-traffic" or "driving profile" i need to fetch shortest path from point A to B. Does "alternatives" option helps or am i missing something.

1

There are 1 best solutions below

0
Edwin On

You indeed can use alternatives. There are more options to play with incl. Avoid highways.. no ferry ( might be shorter but higher cost (time schedule)
A route calculation gives back total time and distance, so play around with it!