calculate_toll
Calculate European road toll costs for heavy trucks and commercial vehicles. Supports 40+ countries. Response fields (all detail levels): origin, destination (resolved place names), total_toll_eur (float), total_distance_km, toll_km, toll_free_km, countries (array with country, country_name, total_km, toll_km, toll_eur), info_url (link to view this route calculation in the TollCalc web app, including the planned route on an interactive map — share with colleagues or open in browser). With detail=detailed: countries also include segments (road, type, km, toll_eur). With detail=full: segments also include geometry, source_url, matched_geofence, formula_vars (all resolved formula variables: km, road_type, weight, axles, emission_class, co2_class, computed rate variables like tollRate, weightAxleClass, effective rate per km), and lookup_trace (all table lookups performed during calculation with their results); origin/destination include lat/lon coordinates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | Optional intermediate waypoints (max 15) | |
| detail | No | Response detail level. compact (default): total + per-country summary. detailed: adds per-segment costs without geometry. full: adds routing debug info and geometry. | compact |
| origin | Yes | Start point: city/address (e.g. 'Munich, Germany') or 'lat;lon' (e.g. '48.1374;11.5755') | |
| vehicle | Yes | Vehicle parameters | |
| destination | Yes | End point: city/address or 'lat;lon' |