Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

db-travel

bởi mmichelli

Transportation
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Plan journeys across Germany and Europe using the Deutsche Bahn API (v6.db.transport.rest)

Mô tả

Kỹ năng này làm gì

Queries the Deutsche Bahn REST API to plan train journeys across Germany and Europe. Covers all transport modes including ICE, regional trains, S-Bahn, U-Bahn, trams, buses, and ferries, with real-time delay data. No API key needed.

Uses a free, no-auth public API with a self-contained Python CLI, so no account setup or credentials are needed to get real-time German rail data.

Khi nào nên dùng

  • Check next trains from Berlin Hbf to Munich
  • Find S-Bahn departures near a Hamburg address
  • Plan a cross-border trip from Cologne to Amsterdam
  • Get live arrival board for Frankfurt airport
  • Look up station IDs before scripting a commute tracker

Quy trình ví dụ

ĐẦU VÀO

User asks: What are my options for getting from Berlin Hbf to München Hbf tomorrow at 10am?

AGENT
  1. 1

    Run search to confirm station IDs for Berlin Hbf and München Hbf

  2. 2

    Call trip with origin, destination, and departure time set to 2025-03-01T10:00:00+01:00

  3. 3

    Parse returned JSON legs and filter to relevant long-distance modes

  4. 4

    Format each leg as line, departure, arrival, platform, and any delay

  5. 5

    Present a summary of connection options in chronological order

ĐẦU RA

ICE 507 departs Berlin Hbf 10:29 from platform 3, arrives München Hbf 14:25. ICE 1001 departs 11:29, arrives 15:24. No current delays reported.

Cài đặt

clawhub install mmichelli/db-travel

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết