toll calculatorroute costtoll API

Toll calculator: how to work out the toll cost of a route

Step-by-step method to calculate route tolls from origin, destination and vehicle profile, with a sample query to the Tolls Calculator API.

By Jorge Parada, CTO de Cargoffer

Toll calculator: how to work out the toll cost of a route

Direct answer: a toll calculator takes an origin, a destination and a vehicle profile, builds the route, splits it into tolled sections and sums the applicable charges. Tolls Calculator documents Spain, Portugal and France as its core coverage, extending to operators such as TollCollect (Germany) and Telepass (Italy) in the cost module. The exact amount always depends on the rates in force at query time: treat any number as an estimate until confirmed with a live query.

Method

  1. Define route geometry (coordinates or a polyline from your router).
  2. Set the vehicle profile: toll class, axles, authorised mass and EURO class where the operator uses them.
  3. Match each section to its operator (Vía-T and free-flow in Iberia, TIS-PL and autoroutes in France, TollCollect, Telepass).
  4. Apply payment-method differences and sum the breakdown.

Example request

POST https://back.transcend.cargoffer.com/api/v1/tolls/calculate with polyline, vehicle_class and payment_method; see the toll API guide for payloads and responses (figures there are illustrative).

Any amount quoted is illustrative: always run a live query before committing a price.

Frequently asked questions

Does a toll calculator give the final price?
No, it returns an estimate based on recorded tariffs; the operator applies the definitive amount at passage.
What inputs do I need?
Origin and destination (or a polyline) plus the vehicle profile: toll class, axles and, where required, mass and EURO class.
Do results include fuel?
No. Use the costs endpoint for toll + fuel + driver combined.

Related resources

Ready to calculate tolls with live data?