<!--
{
  "availability" : [
    "MapKit JS: 5.72.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/DirectionsRequest/avoidTolls",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Property",
  "symbol" : {
    "kind" : "Interface Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structp/mapkit.DirectionsRequest/avoidTolls"
  },
  "title" : "avoidTolls"
}
-->

# avoidTolls

A Boolean value that prioritizes routes to avoid tolls.

```
avoidTolls?: boolean;
```

## Discussion

Set this value to `true` to prioritize routes that don’t have any tolls. The returned routes may contain tolls if no reasonable toll-free routes exist, even if `avoidTolls` is `true`. To verify toll assumptions, check [`hasTolls`](/documentation/MapKitJS/Route/hasTolls). The default is `false`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)