Plan a journey (train / bus)
plan_journeyFind connections between two places in Poland, including changes between trains and buses (PKS). from/to accept a station name ("Poznań Główny"), a town ("Zakopane" = all its stops) or coordinates "52.40,16.91". Returns several options with times, platforms, operators, changes and live delays (today).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination: station, town or 'lat,lon' | |
| date | No | Date: "YYYY-MM-DD", "today", "tomorrow", a weekday ("friday", "piątek") or "DD.MM". Default: today. | |
| from | Yes | Origin: station, town or 'lat,lon' | |
| live | No | Include live delays (default true). | |
| time | No | Local time "HH:MM" (Europe/Warsaw). Default: now (today) or 04:00 (other days). | |
| modes | No | Restrict to these modes, e.g. ["train"] or ["train","bus"]. Default: all loaded. | |
| results | No | Number of options (default 5). | |
| arrive_by | No | If true, `time` is the latest arrival time instead of the earliest departure. | |
| max_transfers | No | Maximum number of changes (default 3, 0 = direct only). | |
| min_transfer_minutes | No | Minimum time for a change (default 4). |