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 get_trip_departure_times function to handle current_time parameter #504

Closed albertkun closed 6 months ago

albertkun commented 6 months ago

This pull request refactors the get_trip_departure_times function to handle a new current_time parameter. The function now returns the closest departure time if the current_time is not within the range of start_time and end_time. This improves the functionality and flexibility of the function.