跳到正文
TakoAPI
返回技能列表

mta

由 brianleach 提供

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

简介

NYC MTA transit — real-time subway arrivals, bus predictions, service alerts, and route info for the New York City.

描述

该技能的功能

Fetches real-time NYC MTA transit data including subway arrivals, bus predictions, service alerts, and route information. Subway feeds and alerts require no API key and update every 30 seconds. Bus predictions require a free key from MTA's developer portal.

Subway and alert feeds are open access with no signup, and the script handles GTFS-RT protobuf parsing automatically so you get structured arrival data without writing any feed-parsing code.

何时使用

  • Checking the next uptown 1 train from Times Square
  • Getting live arrival times for the M15 bus on 2nd Ave
  • Looking up active service alerts before commuting on the A/C/E
  • Finding subway stops near a given set of coordinates
  • Checking which trains are currently running on the L line

示例工作流

输入

User asks: When is the next A train from Jay St-MetroTech heading toward Manhattan?

智能体
  1. 1

    Identifies the A line and resolves the station name to a northbound stop ID

  2. 2

    Fetches the ACE GTFS-RT protobuf feed

  3. 3

    Filters upcoming trips stopping at Jay St-MetroTech northbound

  4. 4

    Checks the subway alerts feed for any active A line disruptions

  5. 5

    Returns next arrivals with direction, track, and alert status

输出

A train toward Inwood-207 St arriving in 4 min. No active service alerts on the A line.

前置要求

  • MTA Bus API key (free) from register.developer.obanyc.com, set as MTA_BUS_API_KEY env var — required only for bus commands; subway and alert commands work without it

安装

clawhub install brianleach/mta

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

链接