住宿预订助手
查找房源联系方式并执
该技能接入瑞士官方开放数据平台 transport.opendata.ch,提供全国铁路(SBB、BLS 等)、公交、有轨电车及渡轮的实时运行信息。支持站点模糊搜索、站台发车看板、A到B行程规划及换乘详情查询。
sudo apt-get install jq(Linux)或 brew install jq(macOS)curl -s "https://transport.opendata.ch/v1/locations?query=Zürich" | jq -r '.stations[] | "\(.name) (\(.id))"'curl -s "https://transport.opendata.ch/v1/stationboard?station=Zürich%20HB&limit=10" | jq -r '.stationboard[] | "\(.stop.departure[11:16]) \(.category) \(.number) → \(.to)"'curl -s "https://transport.opendata.ch/v1/connections?from=Zürich&to=Bern&limit=3" | jq -r '.connections[] | "出发:\(.from.departure[11:16]) 到达:\(.to.arrival[11:16]) 耗时:\(.duration[3:]) 换乘:\(.transfers)"'见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | 起点站名称、终点站名称、日期(可选)、时间(可选)、结果数量限制(默认40)、交通方式过滤(可选) |
| 输出 | 车站列表(含ID)、发车时刻表(含延误与站台)、行程方案(出发/到达时间、耗时、换乘次数)、分段详情(每段起止站、交通工具、线路号) |
| 适用人群 | 在瑞士出行的旅客、需要查询SBB/公交/有轨电车时刻的用户、开发瑞士交通相关应用的开发者 |
| 不包含 | 票务购买与支付、座位预订、跨境列车全程信息(仅覆盖瑞士境内段)、历史时刻数据查询 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/xenofex7/swiss-transport/SKILL.md
来源类型:GitHub 仓库