HERE route tolls (HGV toll costs and toll roads)
here_route_tollsCalculate HGV route toll costs and toll systems, returning total cost, currency, and per-section fare details so you can estimate trip charges and required toll passes.
Instructions
Calculate the toll cost and toll systems for an HGV route using HERE Routing v8 return=tolls. Returns totalCost (cheapest fare option per toll), totalCostMax (dearest), currency, and per-section toll details including toll system names, country, and every fare product with its validity period and payment methods. Typical UK results include "UK HGV LEVY ENGLAND" (day/week/month passes) and motorway tolls such as the M6 Toll. Passes are alternatives — do NOT sum them; use totalCost for the trip cost. Uses the same "truck" profile (metres/kg) as here_route so toll class is based on real dimensions/axles/emissions. emissionType maps to HERE tolls[emissionType] for Euro-class discounts. For a route summary without tolls use here_route; for traffic incidents on the corridor use here_traffic_incidents.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"origin": "<origin>",
"destination": "<destination>"
},
"name": "here_route_tolls"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | Up to 10 intermediate waypoints. | |
| avoid | No | Road/area avoidance options. | |
| truck | No | HGV profile. Only used when transportMode is "truck". | |
| origin | Yes | Start: "lat,lng" or address (auto-geocoded, UK focus). | |
| currency | No | ISO 4217 currency for toll prices, default GBP. | |
| arrivalTime | No | Arrival time (RFC 3339 with offset). Cannot be combined with departureTime. | |
| destination | Yes | End: "lat,lng" or address. | |
| emissionType | No | Toll emission class (Euro standard), e.g. euro6 — sent as tolls[emissionType]. | |
| departureTime | No | Departure time (RFC 3339 with offset) for traffic-aware tolls. | |
| transportMode | No | Travel mode (default truck for HGV tolls; car also accepted). | truck |