← 返回
AI智能 中文

A nach B - AT Public Transport Service (VOR)

Austrian public transport (VOR AnachB) for all of Austria. Query real-time departures, search stations/stops, plan routes between locations, and check service disruptions. Use when asking about Austrian trains, buses, trams, metro (U-Bahn), or directions involving public transport in Austria.
奥地利全境公共交通(VOR AnachB)。支持查询实时发车、搜索站点、规划路线及查看服务中断。适用于查询奥地利火车、公交、电车、地铁(U-Bahn)或公共交通路线指引。
manmal
AI智能 clawhub v1.0.0 1 版本 99803.7 Key: 无需
★ 0
Stars
📥 2,542
下载
💾 1
安装
1
版本
#latest

概述

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: https://vao.demo.hafas.de/gate


1. Search Stations/Stops

Find station IDs by name:

./search.sh "Stephansplatz"
./search.sh "Wien Hauptbahnhof"
./search.sh "Linz"
./search.sh "Salzburg Hbf"

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:

./departures.sh <station-id> [count]

# Examples:
./departures.sh 490132000        # Wien Stephansplatz, 10 departures
./departures.sh 490132000 20     # Wien Stephansplatz, 20 departures
./departures.sh 490060200        # Wien Hauptbahnhof
./departures.sh 444130000        # Linz Hbf
./departures.sh 455000100        # Salzburg Hbf

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:

./route.sh <from-id> <to-id> [results]

# Examples:
./route.sh 490132000 490060200        # Stephansplatz → Hauptbahnhof
./route.sh 490132000 444130000 5      # Wien → Linz, 5 results
./route.sh "Graz Hbf" "Wien Hbf"      # Search by name (slower)

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:

./disruptions.sh [category]

# Examples:
./disruptions.sh            # All disruptions
./disruptions.sh TRAIN      # Train disruptions only
./disruptions.sh BUS        # Bus disruptions only

Common Station IDs

StationID
--------------
Wien Stephansplatz490132000
Wien Hauptbahnhof490134900
Wien Westbahnhof490024300
Wien Praterstern490056100
Wien Karlsplatz490024600
Wien Schwedenplatz490119500
Linz Hbf444116400
Salzburg Hbf455000200
Graz Hbf460086000
Innsbruck Hbf481070100
Klagenfurt Hbf492019500
St. Pölten Hbf431543300
Wiener Neustadt Hbf430521000
Krems a.d. Donau431046400

Tip: Always use ./search.sh to find the correct station ID.


Transport Types

CodeType
------------
ICE/RJ/RJXHigh-speed trains
IC/ECInterCity/EuroCity
REX/RRegional Express/Regional
SS-Bahn (suburban rail)
UU-Bahn (Vienna metro)
STRTram/Straßenbahn
BUSBus
ASTDemand-responsive transport

API Details (for advanced usage)

The scripts use the HAFAS JSON API. For custom queries:

curl -s -X POST "https://vao.demo.hafas.de/gate" \
  -H "Content-Type: application/json" \
  -d '{
    "svcReqL": [{
      "req": { ... },
      "meth": "METHOD_NAME",
      "id": "1|1|"
    }],
    "client": {"id": "VAO", "v": "1", "type": "AND", "name": "nextgen"},
    "ver": "1.73",
    "lang": "de",
    "auth": {"aid": "nextgen", "type": "AID"}
  }'

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 15:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 711 📥 243,706
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,355 📥 318,021
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 834 📥 212,990