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

The 'cashTollOnly' RoadClasses value causes directions request to fail. #779

Closed
kpennacchia opened this issue Dec 8, 2022 · 2 comments
Closed

Comments

@kpennacchia
Copy link

Attempting to request directions while adding cashTollOnly to the exclusions causes the request to fail with the following error.

Exclude value must be one of: toll, motorway, ferry, unpaved, cash_only_tolls, border_crossing, point(lon lat)

Example code snippet:

let routeOptions = NavigationRouteOptions(waypoints: waypoints, profileIdentifier: .automobile)
routeOptions.roadClassesToAvoid = [.cashTollOnly]

It looks like the string value being used is cash_only_toll, but the correct value is cash_only_tolls.

@mickbyrne
Copy link

Same here, needs to be fixed!

@Udumft
Copy link
Contributor

Udumft commented Feb 24, 2023

Hi! The fix has landed in this PR and should be available in next version release (2.10).
Thank you for flagging the issue!

@Udumft Udumft closed this as completed Feb 24, 2023
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

3 participants