Connections
connectionsFind exact TTC trips between two places with timed transfers, departure and arrival times, Pareto-ranked options, and relevant disruptions. Search by depart-at or arrive-by for route planning.
Instructions
Timetable-exact trips between two places on the TTC: every ride is a real trip with its departure and arrival, transfers are timed (walking or station pathways plus a 2-minute change buffer), and the options are the Pareto set over arrival time and transfers, ranked by arrival. origin and destination are a stop number, a station id or alias, or {"lat", "lon"} from a geocoder. depart_at (ISO, Toronto when it has no offset; default now) with window_min (0 to 60, default 30) returns the journeys found every five minutes across the window (every ten when window_min is over 30), one per route sequence; arrive_by instead returns the latest departures that arrive on time, latest first, the first within five minutes of the latest that does; give one or the other. max_transfers is 0 to 3, walk_m (metres to and from the stops) 1 to 2000, limit 1 to 10. Each ride carries basis realtime (an update was applied to its trip, within an hour of now), schedule, or estimate; the first ride lists the next departures in its direction. A closure masks the closed section; when its shuttle runs the shuttle is an estimated leg (assumed headway and speed, stated in its note) and the option is flagged estimate: true and ranked last. A detoured route's trips skip their stops with the published delay. Every option lists the disruptions it touches with the legs they affect, and an empty answer says why. Closures are judged at the query instant, so the note names one that starts or ends inside the search. Live departures and disruptions are best effort, from the TTC's own site endpoints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| origin | Yes | ||
| walk_m | No | ||
| arrive_by | No | ||
| depart_at | No | ||
| window_min | No | ||
| destination | Yes | ||
| max_transfers | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||