get_predictions_for_stop
Retrieve real-time bus arrival predictions for a specific stop. Provide route, stop ID, and optionally limit results to the latest or top predictions.
Instructions
Fetch the top number of predictions or just the latest one if not specified for buses on a specific stop. This is real-time data and is always live, never cached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rt | Yes | Route designator, e.g. the 'rt' field from a get_routes() result. | |
| top | Yes | Maximum number of predictions to return. | |
| stpid | Yes | Stop id, e.g. the 'stpid' field from a get_stops_for_route result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |