mapbox-gl-directions
mapbox-gl-directions copied to clipboard
exclude points doesn't work
I'm trying to exclude certain points by providing them in WKT format. This is supposed to be a "beta" feature which I'm not sure is enabled by default or requires some config however it doesn't work for me.
Error is:
{
"message": "exclude value must be one of: ferry, cash_only_tolls, border_crossing, country_border, state_border",
"code": "InvalidInput"
}
Hi, (Found your comment while I was looking for information on how long these exclusions have been in beta.) Did you get this to work? Example working URL for me: https://api.mapbox.com/directions/v5/mapbox/driving/-74.042015%2C40.735796%3B-74.0001%2C40.730056?exclude=point(-74.024284%2040.727927)&geometries=geojson&access_token=YOUR_ACCESS_TOKEN_HERE