TransportationDocumentedScanned

anachb

Austrian public transport (VOR AnachB) for all of Austria.

Share:

Installation

npx clawhub@latest install a-nach-b

View the full skill documentation and source below.

Documentation

VOR AnachB - Austrian Public Transport API

Query Austrian public transport for real-time departures, route planning, and service disruptions using the HAFAS API.

Quick Reference

ScriptPurpose
search.shFind stations/stops by name
departures.shReal-time departures at a station
route.shPlan a trip between two locations
disruptions.shCurrent service disruptions
API: HAFAS (Hacon Fahrplan-Auskunfts-System) Endpoint: --- ## 1. Search Stations/Stops Find station IDs by name: __CODE_BLOCK_0__ Returns station names, IDs (extId), and coordinates. **Response fields:** - name: Station name - extId: Station ID for use in other queries - type: S (Station), A (Address), P (POI) - coordinates: WGS84 coordinates (lon/lat in 1e-6 format) --- ## 2. Real-Time Departures Get next departures from a station: __CODE_BLOCK_1__ **Response fields:** - line: Line name (U1, S1, RJ, etc.) - direction: Final destination - departure: Scheduled departure time - delay: Delay in minutes (if any) - platform: Platform/track number --- ## 3. Route Planning Plan a trip between two stations: __CODE_BLOCK_2__ **Response fields:** - departure: Departure time - arrival: Arrival time - duration: Trip duration - changes: Number of transfers - legs: Array of trip segments with line info --- ## 4. Disruptions Check current service disruptions: __CODE_BLOCK_3__ --- ## Common Station IDs | Station | ID | |---------|-----| | Wien Stephansplatz | 490132000 | | Wien Hauptbahnhof | 490134900 | | Wien Westbahnhof | 490024300 | | Wien Praterstern | 490056100 | | Wien Karlsplatz | 490024600 | | Wien Schwedenplatz | 490119500 | | Linz Hbf | 444116400 | | Salzburg Hbf | 455000200 | | Graz Hbf | 460086000 | | Innsbruck Hbf | 481070100 | | Klagenfurt Hbf | 492019500 | | St. Pölten Hbf | 431543300 | | Wiener Neustadt Hbf | 430521000 | | Krems a.d. Donau | 431046400 | **Tip:** Always use ./search.sh to find the correct station ID. --- ## Transport Types | Code | Type | |------|------| | ICE/RJ/RJX | High-speed trains | | IC/EC | InterCity/EuroCity | | REX/R | Regional Express/Regional | | S | S-Bahn (suburban rail) | | U | U-Bahn (Vienna metro) | | STR | Tram/Straßenbahn | | BUS | Bus | | AST | Demand-responsive transport | --- ## API Details (for advanced usage) The scripts use the HAFAS JSON API. For custom queries: __CODE_BLOCK_4__ **Available methods:** - LocMatch - Location/station search - StationBoard - Departures/arrivals - TripSearch - Route planning - HimSearch - Disruptions/service messages - JourneyDetails - Details of a specific journey --- ## Tips 1. **Find station IDs first**: Always use search.sh` to find the correct station ID before querying departures or routes.

  • Station vs Stop: Major stations have multiple platforms - the main station ID covers all platforms.
  • Real-time data: Departures include real-time delays when available.
  • Austria-wide: This API covers all Austrian public transport, not just Vienna.
  • Cross-border: Some routes extend to neighboring countries (Germany, Czech Republic, etc.).