Travel time by car (Pyfio Router)
travel_timeEstimate car driving time and distance between two places, including cautious planning time and optional arrive-by departure calculation.
Instructions
Driving time by car from A to B without any account: both ends are geocoded (Photon and Nominatim on OpenStreetMap, their agreement gives a confidence), two routers are asked (OSRM and Valhalla), and a surcharge by weekday and hour is added (calibrated on 23 reference values of a commercial maps service, mean error 2.1 minutes; a model, not live traffic). Returns minutes_typical, minutes_cautious (use this to plan), distance_km, the geocoding hit of each end with its confidence, and a route link. With arrive_by the departure is computed backwards. Times are Berlin local time. Public services are used politely (1 request per second, own User-Agent, cached). No start place is assumed: from is required.
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": "travel_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination: address, place name or "lat,lon" | |
| from | Yes | Start: address, place name or "lat,lon" | |
| arrive_by | No | Latest arrival instead of depart_at; the departure is computed with the cautious time | |
| depart_at | No | Departure (Berlin time): "07:45", "tue 07:45", "tomorrow 17:00", "2026-10-20 07:45"; default now |