Departures at a stop
get_departuresFind what leaves a stop next, the first service or last service in a bounded window. Pass a stopRef from find_transit, or a stop name with its coverage: a name for one place covers all its stations in that network (otherStations lists the same place in other networks, such as the LIRR at Penn Station); a name for different places returns a question to ask, with candidates. A station covers its whole complex, e.g. every line at Times Sq-42 St; a platform ref covers that platform. Pass toStop or toStopRef for the next trips from here that stop at a destination, each with its arrival time there. Returns dated trip references for get_vehicle_status. For a journey with a change use plan_trip (with routes where needed): departures alone cannot prove a connection.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_departures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| stop | No | Stop or station name, with coverage. Give this or stopRef. | |
| limit | No | ||
| toStop | No | Destination stop or station name, with coverage. Give this or toStopRef, or neither. | |
| stopRef | No | Exact stop or station reference. Give this or stop. | |
| coverage | No | Region: sfbay (San Francisco Bay Area), dc (Washington DC Metro and Metrobus), nyc (New York City Subway, LIRR and Metro-North). Region names such as SF or Washington DC also work. Pick the region the place is in; where optional, leave it out only if the place could be in several. | |
| routeRefs | No | ||
| selection | No | first | |
| toStopRef | No | Destination stop or station: only trips that go on to stop there are listed, each with its arrival time there. | |
| agencyRefs | No | ||
| windowSeconds | No | Search window in seconds, 1 through 604800 (seven days). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | ||
| status | Yes | ||
| reasons | Yes | ||
| sources | Yes | ||
| departures | Yes | ||
| attribution | Yes | ||
| otherStations | No | The same place in another network (the LIRR at Penn Station): call again with its ref for its departures. | |
| frequencyWindows | Yes |