mapbox-gl-directions icon indicating copy to clipboard operation
mapbox-gl-directions copied to clipboard

exclude points doesn't work

Open i4innovationnet opened this issue 1 year ago • 1 comments

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"
}

i4innovationnet avatar Jun 25 '24 15:06 i4innovationnet

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

kraig-droid avatar Oct 01 '24 20:10 kraig-droid