Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Разработчики Европейской экономической зоны (ЕЭЗ)
При расчёте матрицы маршрутов может потребоваться учесть любые сборы за проезд по маршрутам, включённым в матрицу. Для некоторых городов можно рассчитать предполагаемую стоимость проезда по маршруту в соответствующей валюте.
Список поддерживаемых пунктов взимания платы см. в справке по TollPass .
Пример матрицы маршрута с оплатой пошлины
В следующем примере метод computeRouteMatrix используется для возврата информации о платном проезде по маршруту с расчетной ценой при использовании платного проезда:
Установите для поля массива extraComputations значение TOLLS чтобы включить расчет информации о платных дорогах.
Укажите тип транспортного средства и тип платного проезда, используя поле routeModifiersисходных точек маршрута запроса. Возвращаемая стоимость проезда рассчитывается на основе цен, используемых для указанного типа транспортного средства и проезда. Если указано несколько проездов, возвращается наименее дорогой вариант.
Используйте маску поля ответа , чтобы настроить метод возврата информации о платных проездах. Укажите routes.travelAdvisory.tollInfo , чтобы вернуть информацию обо всем маршруте.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-09-04 UTC."],[[["\u003cp\u003eThe Routes API's \u003ccode\u003ecomputeRouteMatrix\u003c/code\u003e method allows you to calculate estimated toll fees for routes in supported cities, providing cost insights for route planning.\u003c/p\u003e\n"],["\u003cp\u003eTo enable toll calculations, specify \u003ccode\u003eTOLLS\u003c/code\u003e in the \u003ccode\u003eextraComputations\u003c/code\u003e field and provide vehicle and toll pass details in the \u003ccode\u003erouteModifiers\u003c/code\u003e field within the request.\u003c/p\u003e\n"],["\u003cp\u003eToll prices are estimates and are influenced by factors like vehicle type and toll pass used, with the response including the estimated price in the specified currency.\u003c/p\u003e\n"],["\u003cp\u003eWhile the Route Matrix provides toll information, detailed route specifics are not included; for that, use the \u003ccode\u003eCompute Routes\u003c/code\u003e functionality with single origin and destination points.\u003c/p\u003e\n"],["\u003cp\u003eBe aware that requests including toll fee calculations are billed at a higher rate than standard route matrix requests.\u003c/p\u003e\n"]]],["To calculate toll fees for a route matrix, set the `extraComputations` field to `TOLLS`. Specify the vehicle type and toll pass using the `routeModifiers` field within the origin waypoints; the lowest-cost toll pass pricing will be applied if multiple passes are set. Use the response field mask with `routes.travelAdvisory.tollInfo` to include toll information, and note that toll fee requests have a higher billing rate. The response then contains `estimatedPrice`.\n"],null,[]]