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

Not working "exclude" option #130

Closed
joselao opened this issue Jul 5, 2024 · 2 comments
Closed

Not working "exclude" option #130

joselao opened this issue Jul 5, 2024 · 2 comments

Comments

@joselao
Copy link

joselao commented Jul 5, 2024

The exclude option is not working for osrmRoute() nor osrmNearest() and maybe other functions...

osrm version: 4.2.0

I use the code:

pharmacy <- st_read(system.file("gpkg/apotheke.gpkg", package = "osrm"), quiet = TRUE)
route <- osrmRoute(src = pharmacy[1, ], dst = pharmacy[2, ], exclude="motorway")
plot(st_geometry(route))

And I get in console:

Error: OSRM API request failed [400]
InvalidValue
Exclude flag combination is not supported.

Thanks

Jose

@rCarto
Copy link
Member

rCarto commented Jul 5, 2024

Hello,
Are you using the default demo server? If I remember well this server does not support the exclude param. I'll check that and I'll add something in the code and in the doc.
Thanks

@rCarto
Copy link
Member

rCarto commented Jul 24, 2024

@rCarto rCarto closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants