---
metadata:
  - name: generator
    content: Diplodoc Platform v5.19.6
alternate:
  - https://docs.routeq.com/doc/en/vrp/avoid-tolls.md
title: RouteQ — properties and options — avoid toll roads
---
> **Documentation Index:** Fetch the complete configuration index at https://docs.routeq.com/doc/en/llms.txt


# Avoid toll roads

By default, routing doesn't take into account the additional cost of using toll roads. For example, you're likely to take a toll road when going to the Sheremetyevo airport. You can use free roads instead, but that takes longer, which makes the algorithm decide that using free roads is more expensive. However, the courier will have to pay for using the toll road, which may lead to additional expenses.

To avoid the expenses, set `options.avoid_tolls` = `true`. The algorithm will try to build a route without using a toll road. If that's not possible, a route won't be built.

{% note alert %}

If you plan deliveries to or from locations on toll roads and use `options.avoid_tolls`, the algorithm may build a suboptimal route. If you have such deliveries, we recommend setting `options.avoid_tolls` = `false`.

{% endnote %}

**Example 1.1**

A route to the Sheremetyevo airport is built. It follows the M-11 toll road, and the courier has to pay for using it. The route cost doesn't take these expenses into account.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/495dcbb5-839ab6ba-9b05df09-cfce5d16) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/495dcbb5-839ab6ba-9b05df09-cfce5d16) ⋅  [View on map](https://yandex.com/courier/mvrp-map#495dcbb5-839ab6ba-9b05df09-cfce5d16)

**Example 1.2**

Same as example 1.1 but with the `options.avoid_tolls` option. As a result, the route is longer, but it doesn't use toll roads.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/4f2ffb8e-4c698eb2-ea53eff2-31c321de) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/4f2ffb8e-4c698eb2-ea53eff2-31c321de) ⋅  [View on map](https://yandex.com/courier/mvrp-map#4f2ffb8e-4c698eb2-ea53eff2-31c321de)

**Example 2.1**

The route includes a paid crossing, and the courier has to pay for using it. The route cost doesn't take these expenses into account.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/dd0bdf02-2feb94f4-4dc3ffa8-4cdfdd1f) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/dd0bdf02-2feb94f4-4dc3ffa8-4cdfdd1f) ⋅  [View on map](https://yandex.com/courier/mvrp-map#dd0bdf02-2feb94f4-4dc3ffa8-4cdfdd1f)

**Example 2.2**

Same as example 2.1 but with the `options.avoid_tolls` option. As a result, the route is longer, but it doesn't use the paid crossing.

[API request (JSON)](https://courier.yandex.ru/vrs/api/v1/log/request/5e8d77f4-b76d188d-ff1b11c8-dc40b287) ⋅ [API response](https://courier.yandex.ru/vrs/api/v1/result/5e8d77f4-b76d188d-ff1b11c8-dc40b287) ⋅  [View on map](https://yandex.com/courier/mvrp-map#5e8d77f4-b76d188d-ff1b11c8-dc40b287)

{% include [warehouse-feedback](_includes/feedback-81845556eeea.md) %}
