transitmatters / mbta-performance

For processing performance data for the data dashboard
MIT License
0 stars 0 forks source link

Calculate 15/30 minute rolling average on headways #20

Closed hamima-halim closed 1 month ago

hamima-halim commented 2 months ago

We'll also need to do something similar for scheduled headways. This is something the MBTA used to to for the v2 Performance API but not for LAMP, so it will smooth out the current metrics and also bring us to parity with the old version of the dashboard data.

devinmatte commented 2 months ago

Initial code for this exists in https://github.com/transitmatters/mbta-performance/pull/21. I am missing the last step of merging the calculated averages into the results, but it should offer a good base