-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't exclude ferries, tolls or motorways on the route #232
Comments
@bbantsadze could you please add the API request here as well? You can use the API Playground to generate the request URL: https://www.mapbox.com/api-playground/#/directions?_k=nhxwpq. |
|
@bbantsadze thanks for confirming this. Looks like the exclude is working, however, the exclude parameter is not included in the plugin just yet (https://github.com/mapbox/mapbox-gl-directions/blob/master/src/directions.js#L19). If you'd like to contribute, you can create a pull request to have this added. In the meantime, you can still use the API directly and add specific parameters or use the Mapbox JavaScript SDK. |
Thanks for response. I checked and it worked, so created a pull request. |
Merge was completed. Thanks. |
There seems to be no way to toggle this option at runtime, am I missing something obvious? |
I'm using the latest version:
4.0.2
and passingexclude
parameter like this:But it doesn't exclude ferries. What am i doing wrong?
The text was updated successfully, but these errors were encountered: