Skip to content
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

exclude points doesn't work #319

Open
i4innovationnet opened this issue Jun 25, 2024 · 1 comment
Open

exclude points doesn't work #319

i4innovationnet opened this issue Jun 25, 2024 · 1 comment

Comments

@i4innovationnet
Copy link

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"
}
@kraig-droid
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants