get_detours
Check active bus detours to verify route stop or pattern data is current. Filter by route and direction to see relevant detours.
Instructions
Fetch active detours in the system. Optionally filter by route (rt) and, if rt is given, by direction. Check this before trusting a get_stops_for_route or get_patterns result is current, since detours can add/remove stops or shift pattern geometry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rt | No | Route designator to filter detours by, e.g. the 'rt' field from a get_routes() result. | |
| direction | No | Direction id to filter by (requires rt). Use the 'id' field from a get_directions(rt) result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |