mapbox / mapbox-gl-directions

Directions plugin for mapbox-gl-js using Mapbox Directions API.
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
ISC License
235 stars 124 forks source link

Totally exclude ferries instead of avoiding them #315

Open AntoineAwaida opened 4 months ago

AntoineAwaida commented 4 months ago

It seems using exclude=ferry parameter, this leads to avoiding them rather than totally excluding them (i.e. I'd like to not have any proposed route in response, instead of preferring the ones without ferries if available).

An example of it is trying to query London to Dublin, or Paris to Guernesey. Mapbox still returns routes, rather than excluding them (although obviously there's no way to avoid ferries on these routes).

Is there a way, either through the API, either through filtering proposed routes, to remove this results ?