transitmatters / t-performance-dash

TransitMatters performance visualizer for the MBTA
https://dashboard.transitmatters.org/
MIT License
48 stars 16 forks source link

Show running elevators/escalators #562

Open devinmatte opened 1 year ago

devinmatte commented 1 year ago

It would be great if we can show how actually accessible the stations in the T are somewhere in the UI of the dashboard

Blue Line
Escalators 4/10 in service
Elevators 9/10 in service

https://www.mbta.com/alerts/access should show us elevators/escalators closures, and we can use that to create aggregate metrics of availability

kmoses228 commented 1 year ago

Additional info:

We could use GET /facilities from the V3 MBTA API to get a list of all elevators and escalators in the system, and periodically store the results of GET /alerts to compute downtime in order to display history.

I'm not familiar with how our periodic data scraping is done today, or whether it would be best to follow the same framework or do something new for this feature.

devinmatte commented 1 year ago

@kmoses228 We do a lot of regular data processing in the data-ingestion repo which would probably be the place to look for keeping a historical record of the live info

nathan-weinberg commented 5 months ago

@devinmatte @kmoses228 anything else for this or did the changes in #578 cover it and we can close this out?

devinmatte commented 5 months ago

We never added aggregate stats, just showing the live alerts. Not sure if we want that still or not, since the live alerts tell a lot of the story

nathan-weinberg commented 5 months ago

That would be cool to have - we could also use the alert history we collect to show percentages of how often an elevator/escalator is out of service (thinking about Porter :thinking:)