get_train_announcements
Fetch live train departures or arrivals for a Swedish station by name or signature, including platform, estimated time, delay, cancellation, and deviation notes.
Instructions
Get live train departures or arrivals at a Swedish station: train number, operator, product (e.g. "Pendeltåg"), origin/destination, platform (track), advertised vs. estimated/actual time, delay in minutes, cancellation and deviation notes. Accepts a station name (e.g. "Göteborg C", "Stockholm") or a location signature; an ambiguous name returns an error listing the candidates. Covers a window from minutesBack before now to hoursAhead after now. Use get_train_messages for broader disruption notices (track work, faults) instead of per-train data. Times are ISO 8601, delays in minutes (positive = late). Returns an error result (isError: true) if TRAFIKVERKET_API_KEY is missing/invalid or the Trafikverket API is unreachable. Coverage: Sweden only (Trafikverket data).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of trains to return (1-100) | |
| station | Yes | Station name (e.g. "Göteborg C", "Stockholm") or location signature (e.g. "G", "Cst") | |
| direction | No | "departures" (default) or "arrivals" at the station | departures |
| hoursAhead | No | How many hours ahead of now to include (0.25-12) | |
| minutesBack | No | How many minutes back from now to include, so just-left or delayed trains show up (0-120) |