Alert Struct Reference
An alert, indicating some sort of incident in the public transit network. More...
Public Types | |
enum | Cause { UNKNOWN_CAUSE = 1, OTHER_CAUSE = 2, TECHNICAL_PROBLEM = 3, STRIKE = 4, DEMONSTRATION = 5, ACCIDENT = 6, HOLIDAY = 7, WEATHER = 8, MAINTENANCE = 9, CONSTRUCTION = 10, POLICE_ACTIVITY = 11, MEDICAL_EMERGENCY = 12 } |
Cause of this alert. More... | |
enum | Effect { NO_SERVICE = 1, REDUCED_SERVICE = 2, SIGNIFICANT_DELAYS = 3, DETOUR = 4, ADDITIONAL_SERVICE = 5, MODIFIED_SERVICE = 6, OTHER_EFFECT = 7, UNKNOWN_EFFECT = 8, STOP_MOVED = 9 } |
What is the effect of this problem on the affected entity. More... | |
Public Attributes | |
repeated TimeRange | active_period = 1 |
Time when the alert should be shown to the user. More... | |
repeated EntitySelector | informed_entity = 5 |
Entities whose users we should notify of this alert. | |
optional Cause | cause = 6 [default = UNKNOWN_CAUSE] |
optional Effect | effect = 7 [default = UNKNOWN_EFFECT] |
optional TranslatedString | url = 8 |
The URL which provides additional information about the alert. | |
optional TranslatedString | header_text = 10 |
Alert header. Contains a short summary of the alert text as plain-text. | |
optional TranslatedString | description_text = 11 |
Full description for the alert as plain-text. More... | |
extensions | to |
The extensions namespace allows 3rd-party developers to extend the GTFS-realtime specification in order to add and evaluate new features and modifications to the spec. More... | |
Detailed Description
An alert, indicating some sort of incident in the public transit network.
Member Enumeration Documentation
enum Alert::Cause |
enum Alert::Effect |
Member Data Documentation
repeated TimeRange Alert::active_period = 1 |
Time when the alert should be shown to the user.
If missing, the alert will be shown as long as it appears in the feed. If multiple ranges are given, the alert will be shown during all of them.
optional TranslatedString Alert::description_text = 11 |
Full description for the alert as plain-text.
The information in the description should add to the information of the header.
extensions Alert::to |
The extensions namespace allows 3rd-party developers to extend the GTFS-realtime specification in order to add and evaluate new features and modifications to the spec.
The documentation for this struct was generated from the following file:
- gtfs-realtime.proto