xenofex7

Swiss Public Transport

生活サービスv1.0.0
作者:xenofex7更新日 2026-05-11swiss-transport@clawhub_xenofex7/swiss-transport
旅行計画

AlphaMoatによると、2026-09時点でSwiss Public Transportのダウンロード数は2,628、スター数は3で、AIスキル全体5,078件中4,000位、生活サービスでは246件中209位です。

インストール数
263
ダウンロード数
2628
スター数
3
総合順位
#4,000
全体の上位 79% · 生活サービスの上位 85%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗8124783-
SkillHub ↗26326283—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

公式 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;ice_tgv_rj、ir、bus、tramway_underground 等の transportations[] で絞り込み);/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 キー不要;リアルタイムデータには遅延とホーム変更が含まれる。

資料公開日 2026-10-27

できること

  • 「次にチューリッヒから出る電車はいつ?」等の出発照会
  • 「ベルンからジュネーブへの行き方は?」等の経路計画
  • バーゼル SBB 等の駅のリアルタイム発車標(遅延・ホーム込み)の確認

使う場面

  • スイス内の電車/バス/トラム/船の時刻表を照会するときに使用
  • 駅検索、発車標、A から B への経路計画、接続詳細が必要なときに使用

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

チューリッヒ HB からベルンへの次の電車は何時?
明日の朝バーゼルからルガーノへの経路を計画して
今のバーゼル SBB 駅の発車標を見せて

月次の推移

ダウンロード数2628
1912229726812026-03 · ダウンロード数 19652026-05 · ダウンロード数 21132026-06 · ダウンロード数 21672026-07 · ダウンロード数 23332026-08 · ダウンロード数 24092026-09 · ダウンロード数 262826-0326-09
スター数3
2342026-03 · スター数 32026-05 · スター数 32026-06 · スター数 32026-07 · スター数 32026-08 · スター数 32026-09 · スター数 326-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-092628—3
2026-082409+3.3%3
2026-072333+7.7%3
2026-062167+2.6%3
2026-052113—3
2026-031965—3

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

3.1 KB・ClawHub v1.0.0
---
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.
すべて表示(全 88 行)
## 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

生活サービスの人気スキル

xenofex7のその他のスキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。