# Exclude highway from scooter route

There is a parameter avoid[features]=controlledAccessHighway, which prevents highway usage. If this parameter is used, then scooters are not allowed to use highways even if allowHighway is set to true. In this case, with scooter[allowHighway]=true and avoid[features]=controlledAccessHighway, the scooter is not allowed on the highway and the calculation returns the fastest route that does not go through a highway. If no route is possible that avoids the highway, then the calculation returns a route that makes minimal use of the highway along with a notice (with notice code violatedAvoidControlledAccessHighway).

curl -X GET \
'https://router.hereapi.com/v8/routes?destination=53.335542,14.522257&origin=53.338226499,14.5058642048&transportMode=scooter&avoid[features]=controlledAccessHighway&scooter[allowHighway]=true&apikey={YOUR_API_KEY}'