据 AlphaMoat 统计,截至 2026-09,Swiss Public Transport 累计下载 2,628 次、获 3 个星标,在全部 5,078 个 AI 技能中排名第 4,000 位,在「生活服务」分类(246 个)中排名第 209 位。
| 平台 | 累计安装 | 累计下载 | 星标 | 评论 |
|---|---|---|---|---|
| ClawHub ↗ | 81 | 2,478 | 3 | - |
| SkillHub ↗ | 263 | 2,628 | 3 | — |
各平台的计数口径不同,统计时间不一致。
经官方 transport.opendata.ch API 查询瑞士公共交通(SBB、BLS、ZVV 等)。快速命令:用 /v1/locations?query= 搜索站点(支持自动补全,如搜 "Zürich" 可找到 "Zürich HB");用 /v1/stationboard?station=Zürich%20HB&limit=10 获取出发板(limit 默认 40,可用 transportations[] 按 ice_tgv_rj、ir、bus、tramway_underground 等类型过滤);用 /v1/connections?from=&to= 做 A 到 B 行程规划(可选 via[] 中途站、date、time、isArrivalTime,limit 最大 16);并可用 jq 提取换乘段详情。也可用 python3 scripts/journey.py "Zürich HB" "Bern" 获得格式化行程。注意事项:所有时间均为瑞士本地时间(CET/CEST);API 默认返回 JSON;无需 API key;实时数据包含延误与站台变更。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-09 | 2,628 | — | 3 |
| 2026-08 | 2,409 | +3.3% | 3 |
| 2026-07 | 2,333 | +7.7% | 3 |
| 2026-06 | 2,167 | +2.6% | 3 |
| 2026-05 | 2,113 | — | 3 |
| 2026-03 | 1,965 | — | 3 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- name: swiss-transport description: Swiss Public Transport real-time information. Use when querying train, bus, tram, or boat schedules in Switzerland. Supports station search, departure boards, journey planning from A to B, and connection details. Use for queries like "When does the next train leave from Zürich?" or "How do I get from Bern to Geneva?" or "Show departures at Basel SBB". homepage: https://transport.opendata.ch --- # Swiss Public Transport Query Swiss public transport (SBB, BLS, ZVV, etc.) using the official transport.opendata.ch API.
## Quick Commands
### Search stations
```bash
curl -s "https://transport.opendata.ch/v1/locations?query=Zürich" | jq -r '.stations[] | "\(.name) (\(.id))"'
```
### Get next departures
```bash
curl -s "https://transport.opendata.ch/v1/stationboard?station=Zürich%20HB&limit=10" | \
jq -r '.stationboard[] | "\(.stop.departure[11:16]) \(.category) \(.number) → \(.to)"'
```
### Plan journey from A to B
```bash
curl -s "https://transport.opendata.ch/v1/connections?from=Zürich&to=Bern&limit=3" | \
jq -r '.connections[] | "Departure: \(.from.departure[11:16]) | Arrival: \(.to.arrival[11:16]) | Duration: \(.duration[3:]) | Changes: \(.transfers)"'
```
### Get connection details with sections
```bash
curl -s "https://transport.opendata.ch/v1/connections?from=Zürich%20HB&to=Bern&limit=1" | \
jq '.connections[0].sections[] | {from: .departure.station.name, to: .arrival.station.name, departure: .departure.departure, arrival: .arrival.arrival, transport: .journey.category, line: .journey.number}'
```
## API Endpoints
### `/v1/locations` - Search stations
```bash
curl "https://transport.opendata.ch/v1/locations?query=<station-name>"
```
Parameters:
- `query` (required): Station name to search
- `type` (optional): Filter by type (station, address, poi)
### `/v1/stationboard` - Departure board
```bash
curl "https://transport.opendata.ch/v1/stationboard?station=<station>&limit=<number>"
```
Parameters:
- `station` (required): Station name or ID
- `limit` (optional): Number of results (default 40)
- `transportations[]` (optional): Filter by type (ice_tgv_rj, ec_ic, ir, re_d, ship, s_sn_r, bus, cableway, arz_ext, tramway_underground)
- `datetime` (optional): Date/time in ISO format
### `/v1/connections` - Journey planner
```bash
curl "https://transport.opendata.ch/v1/connections?from=<start>&to=<destination>&limit=<number>"
```
Parameters:
- `from` (required): Starting station
- `to` (required): Destination station
- `via[]` (optional): Intermediate station(s)
- `date` (optional): Date (YYYY-MM-DD)
- `time` (optional): Time (HH:MM)
- `isArrivalTime` (optional): 0 (departure, default) or 1 (arrival)
- `limit` (optional): Number of connections (max 16)
## Helper Script
Use `scripts/journey.py` for formatted journey planning:
```bash
python3 scripts/journey.py "Zürich HB" "Bern"
python3 scripts/journey.py "Basel" "Lugano" --limit 5
```
## Notes
- All times are in Swiss local time (CET/CEST)
- Station names support autocomplete (e.g., "Zürich" finds "Zürich HB")
- API returns JSON by default
- No API key required
- Real-time data includes delays and platform changes
用 curl 直接向公共天气服务取当前天气与预报的技能。
在局域网里发现并控制 Sonos 音箱的命令行工具。
以六爻占卜方式作答的技能。
用本地 JSON 记录饮水量与睡眠的技能。
在本地同步并查询 CalDAV 日历的命令行技能。
在 macOS 上通过 remindctl 管理提醒事项的技能。
travel-cn 聚合去哪儿/携程/飞猪等中国旅行平台的数据查询,覆盖机票、酒店、火车票、景点门票与行程规划。
在终端里搜索与控制 Spotify 播放的技能。
数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。