LACMTA / metro-api-v2

Docs: https://lacmta.github.io/metro-api-v2/ Dev: https://dev-metro-api-v2.ofhq3vd1r7une.us-west-2.cs.amazonlightsail.com/docs
https://api.metro.net/docs
0 stars 3 forks source link

Refactor filtering and closest time calculation for trip departure times #505

Closed albertkun closed 6 months ago

albertkun commented 6 months ago

This pull request refactors the filtering and closest time calculation for trip departure times. It introduces a more efficient approach to filter the records based on the current time and calculates the closest departure time for each record. This improves the accuracy and performance of the trip departure times functionality.