DirectionsAvoid
A list of the features you can request to avoid when calculating directions.
Declaration
string DirectionsAvoidPossible Values
Tolls
Possible Values
- Tolls
When you set
avoid=Tolls, routes without tolls are higher up in the list of returned routes. Note that even when you setavoid=Tolls, the routes the server returns may contain tolls (if no reasonable toll-free routes exist). Ensure you check the value ofroutes[i].hasTollsin the response to verify toll assumptions.