jamespfennell / transiter

Web service for transit data
https://demo.transiter.dev
MIT License
59 stars 7 forks source link

[GTFS Full Support] Alerts #66

Closed jamespfennell closed 4 years ago

jamespfennell commented 4 years ago

Will need to create the following tables and parse types:

Then, in the HTTP API, we will search for alerts based on the active period. We will return a JSON blob like:

{
    "id": "id",
    "cause": "TECHNICAL_PROBLEM",
    "effect": "SIGNIFICANT_DELAYS".
    "messages" [
        {
            "header": "..."
        }
     ],
     "started_at": "",
     "ends_at": "",
}

We may possibly inspect the NYCT Subway extension to see if there are extra fields worth putting in.

jamespfennell commented 4 years ago

https://github.com/OneBusAway/onebusaway-gtfs-realtime-api/blob/7c5a948c7e9b683b954f39d5aac64ab9b0326f52/src/main/resources/com/google/transit/realtime/gtfs-realtime-service-status.proto

jamespfennell commented 4 years ago

Reasonable fields from the MTA: