跳到正文
TakoAPI
返回技能列表

translink-cli

由 alanburchill 提供

Transportation
336下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Query, troubleshoot, and explain Translink SEQ GTFS static + realtime data using local translink_* commands.

描述

该技能的功能

Provides shell commands and slash commands for querying Translink South East Queensland GTFS transit data. Covers static schedule lookups, realtime vehicle and trip status, service alerts, and relational joins across stops, routes, trips, and calendar data. Data is cached locally with a 24-hour TTL and daily auto-refresh.

Combines static GTFS schedule data with realtime feeds under a single command surface with consistent filtering, pagination, and PK/FK join support across all transit entity types.

何时使用

  • Look up scheduled departures from a specific stop
  • Check realtime vehicle position for an active trip
  • Find all stops along a given route
  • Review current service alerts affecting a route
  • Join trip, stop, and calendar data to diagnose a missed connection

示例工作流

输入

User asks: What buses are scheduled at stop 000340 in the next 30 minutes?

智能体
  1. 1

    Run translink_schedule_refresh to confirm cache is current

  2. 2

    Query translink_stops with --where stop_id=000340 to verify the stop exists

  3. 3

    Query translink_stop_times with --where stop_id=000340 to retrieve scheduled arrivals

  4. 4

    Filter results to the current time window using --where or --per-page

  5. 5

    Join with translink_trips and translink_routes to show route name and headsign

输出

Paginated table of upcoming departures at stop 000340 with route short name, headsign, and scheduled arrival times

前置要求

  • Translink CLI scripts installed and available in PATH (https://github.com/alanburchill/traslink-cli-scripts)

安装

clawhub install alanburchill/translink-cli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接