ttc
Real-time Toronto transit — bus & streetcar arrivals, vehicle tracking, alerts, stop search
Files18
View on GitHubSKILL.mdskills/lucasygu/ttc/SKILL.md
GitHubTTC CLI — Toronto Transit Commission
Real-time bus and streetcar tracking for Toronto. Next arrivals, vehicle positions, service alerts, and stop search — all from the terminal.
Prerequisites
- Node.js 22+
- No authentication required — all feeds are public
Quick Reference
ttc next "king spadina" # Next arrivals at a stop
ttc next 8126 # By stop code
ttc route 504 # Route info + active vehicles
ttc vehicles 504 # Live positions on a route
ttc alerts # Service alerts
ttc alerts --broad # Include subway alerts
ttc nearby 43.6426,-79.4002 # Nearest stops + arrivals
ttc stops 504 # Active stops on a route
ttc routes # List all surface routes
ttc routes --type streetcar # Filter by type
ttc search "broadview station" # Fuzzy stop search
ttc status # System overview
Commands
ttc next <stop>
Show next arrivals at a stop. Accepts stop name (fuzzy matched), stop ID, or stop code.
ttc route <number>
Show route info: type (bus/streetcar), directions/headsigns, active vehicle count, alerts.
ttc vehicles [route]
Live vehicle positions. Shows fleet number, route, status, current stop, and occupancy.
ttc alerts [route]
Service disruptions and alerts. Use --broad for subway alerts too.
ttc nearby <lat,lng>
Find nearest stops and their upcoming arrivals. Default 500m radius.
ttc routes
List all surface routes. Filter with --type bus or --type streetcar.
ttc search <query>
Fuzzy search for stops by name. Strips noise words (St, Ave, At) for better matching.
ttc stops <route>
List currently active stops on a route (derived from live vehicle and prediction data).
ttc status
System overview: active vehicles, active routes, alert count, static data freshness.
Global Options
All commands support:
--json— Output as JSON for agent/script consumption
Data Sources
- Real-time: GTFS-RT protobuf feeds from
bustime.ttc.ca(no auth) - Static: Pre-bundled stop/route/trip data from Open Toronto GTFS
- Coverage: Surface transit only (buses + streetcars). Subway alerts available via
--broad.