Commute cost
commute_costMonthly commute cost between two Swiss places: by car at the official Swiss average fuel price (BFS) and by electric car at the home commune official electricity tariff (ElCom H4), plus the public-transport journey time (Swiss timetable). Distance defaults to straight line × 1.3 between the stations (labelled estimate) unless km_one_way is given. Public-transport fares are not open official data and are not included.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "commute_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Work place: Swiss postcode or locality, e.g. "Zürich" or "8001". | |
| from | Yes | Home place: Swiss postcode or locality, e.g. "Winterthur" or "8400". | |
| fuel | No | unleaded95 or diesel | |
| ev_kwh | No | kWh/100 km, default 18 | |
| km_one_way | No | Road distance one way in km, e.g. 25; omit to use the routed distance between from and to. | |
| consumption_l | No | l/100 km, default 7 | |
| days_per_month | No | Commuting days per month, e.g. 20 (default 20). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attribution | No |