SKILL.md--- name: wienerlinien description: Vienna public transport (Wiener Linien) real-time data. Use when asking about departures, schedules, disruptions, elevator status, or directions in Vienna's public transport (U-Bahn, tram, bus, night bus). Queries stops, lines, and traffic info. --- # Wiener Linien Real-Time API Query Vienna's public transport for real-time departures, disruptions, elevator outages, and service information. ## Quick Reference | Endpoint | Purpose | |----------|---------| | `/monitor` | Real-time departures at a stop | | `/trafficInfoList` | All current disruptions | | `/trafficInfo` | Specific disruption details | | `/newsList` | Service news & elevator maintenance | **Base URL:** `https://www.wienerlinien.at/ogd_realtime` --- ## Finding Stop IDs Stops are identified by **RBL numbers** (Rechnergestütztes Betriebsleitsystem). Use the reference data: ```bash # Search stops by name curl -s "https://www.wienerlinien.at/ogd_realtime/doku/ogd/wienerlinien-ogd-haltepunkte.csv" | grep -i "stephansplatz" # Format: StopID;DIVA;StopText;Municipality;MunicipalityID;Longitude;Latitude ``` **Common Stop IDs (RBL):** | Stop | RBL IDs | Lines | |------|---------|-------| | Stephansplatz | 252, 4116, 4119 | U1, U3 | | Karlsplatz | 143, 144, 4101, 4102 | U1, U2, U4 | | Westbahnhof | 1346, 1350, 1368 | U3, U6 | | Praterstern | 4205, 4210 | U1, U2 | | Schwedenplatz | 1489, 1490, 4103 | U1, U4 | | Schottentor | 40, 41, 4118 | U2, Trams | --- ## 1. Real-Time Departures (`/monitor`) Get next departures at one or more stops. ### Request ```bash # Single stop curl -s "https://www.wienerlinien.at/ogd_realtime/monitor?stopId=252" # Multiple stops curl -s "https://www.wienerlinien.at/ogd_realtime/monitor?stopId=252&stopId=4116" # With disruption info curl -s "https://www.wienerlinien.at/ogd_realtime/monitor?stopId=252&activateTrafficInfo=stoerungkurz&activateTrafficInfo=stoerunglang&activateTrafficInfo=aufzugsinfo" ``` ### Parameters | Param | Required | Description | |-------|----------|-------------| | `stopId` | Yes (1-n) | RBL stop ID(s) | | `activateTrafficInfo` | No | Include disruptions: `stoerungkurz`, `stoerunglang`, `aufzugsinfo` | | `aArea` | No | `1` = include all platforms with same DIVA number | ### Response Structure ```json { "data": { "monitors": [{ "locationStop": { "properties": { "name": "60201234", // DIVA number "title": "Stephansplatz", // Stop name "attributes": { "rbl": 252 } }, "geometry": { "coordinates": [16.3726, 48.2085] // lon, lat (WGS84) } }, "lines": [{ "name": "U1", "towards": "Leopoldau", "direction": "H", // H=hin, R=retour "type": "ptMetro", "barrierFree": true, "realtimeSupported": true, "trafficjam": false, "departures": { "departure": [{ "departureTime": { "timePlanned": "2025-01-08T19:30:00.000+0100", "timeReal": "2025-01-08T19:31:30.000+0100", "countdown": 3 // minutes until departure } }] } }] }] }, "message": { "