TrueTravelCost
v1.0.0Estimate what a car trip really costs: fuel, servicing, tyres, tolls and ownership.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
calculate_trip_cost Calculate car trip cost
Estimate the true cost of driving from one place to another: fuel or electricity, maintenance, tyres, tolls and optionally ownership costs (depreciation, insurance, registration). Best coverage in Europe. Returns EUR figures with a breakdown. Estimates use vehicle-class averages. Motorway vignettes for Austria, Switzerland, Czechia, Slovakia and Slovenia are included in tolls_and_extras (see the vignettes list); other vignette countries such as Hungary are flagged in warnings but not yet priced.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start location, city or address. Include the country, e.g. "Munich, Germany". |
to * | string | Destination, e.g. "Salzburg, Austria". |
fuel_price | number | Optional override: EUR per litre (or per kWh for electric). |
fuel_type | string | Only for classes other than hybrid and electric. Default petrol. |
include_ownership_costs | boolean | Add depreciation, insurance and registration/finance. |
premium | boolean | Premium brand: servicing, tyres and ownership cost more. |
round_trip | boolean | Double the distance, tolls and costs. |
vehicle_class | string | Type of vehicle. |