Nika Kurashvili
Nika Kurashvili

Reputation: 6462

mapbox direction or optimization api (how to avoid tolls/bridges/etc)

I am using mapbox and leaflet and leaflet plugin.

I have a very simple question. I'd like to have the option to avoid tolls/bridges/etc by passing the specific option. Is this possible ? I've seen that for mapbox swift , it's possible, but i don't see anything mapbox api has something like this for Directions/Optimization API.

Any idea on how I can achieve this?

Upvotes: 1

Views: 523

Answers (1)

Steve Bennett
Steve Bennett

Reputation: 126255

You can pass exclude=toll to the API call to avoid tolls.

Documentation

Upvotes: 2

Related Questions