allowHighway property
Specifies whether scooter is allowed on highway or not. True means scooter is
allowed to use highways and false means otherwise. By default it is set to false.
Note that there is a similar parameter in AvoidanceOptions, to
disallow highway usage, see RoadFeatures.controlledAccessHighway.
As the avoidance options takes precedence, if this parameter is also used, then
scooters are not allowed to use highways even if allowHighway is set to true.
However, if no alternative route is possible, the calculated route may use highways.
In such a case, a SectionNotice will be provided in the related Section
to indicate that the highway usage restriction is violated on this route.
A few examples:
1 - If no avoidance option is set, and allowHighway = false, when no route is found without
highway usage, a notice is received.
2 - If no avoidance option is set, and allowHighway = true, when no route is found without
highway usage, no notice is received.
3 - If only avoid[features] = controlledAccessHighway is set, when no route is found without
highway usage, a notice is received.
4 - If both avoid[features] = controlledAccessHighway and allowHighway = true are set,
when no route is found without highway usage, a notice is received.
Implementation
bool allowHighway;