Get Service Alert Detail
onebusaway_get_alertFetch full detail for a service alert (situation) by ID. Returns the summary, description, reason (e.g. detour, construction), affected stops and routes, consequence description, and active time windows. Situation IDs appear in onebusaway_get_arrivals responses under situationIds and situations[].id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| situationId | Yes | Situation/alert ID from onebusaway_get_arrivals (situations[].id or arrivals[].situationIds[]). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Situation ID. | |
| url | No | URL for more information about this alert, or null. | |
| error | No | Present when the call failed. Absent on success. | |
| reason | No | Reason code from TPEG: equipmentReason, environmentReason, personnelReason, miscellaneousReason, securityAlert. Null when not provided. | |
| affects | No | Stops, routes, trips, or agencies affected by this alert. | |
| summary | No | Short summary of the service alert. | |
| severity | No | Severity level as reported by the agency, or null. | |
| description | No | Longer description of the alert, or null. | |
| consequences | No | Operational consequences of this alert. | |
| activeWindows | No | Time windows when this alert is active. | |
| consequenceMessage | No | Human-readable consequence description (e.g. "Detour in effect"), or null. |