get_stops_for_route
Retrieve all stops for a bus route in a specific direction, using the route designator and direction ID. Provides stop IDs for further predictions.
Instructions
Fetch all stops for a route heading in a specified direction. Use the 'stpid' field from a result as input to get_predictions_for_stop. Call get_directions(rt) first if you don't already have a valid direction id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rt | Yes | Route designator, e.g. the 'rt' field from a get_routes() result. | |
| direction | Yes | Direction id for the route. Use the 'id' field (not 'name') from a get_directions(rt) result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |