Skip to content

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

@kpennacchia

Description

@kpennacchia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions