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 join condition and update response model in get_stop_times_by_route_code_and_agency function #524

Closed albertkun closed 3 months ago

albertkun commented 3 months ago

This pull request refactors the join condition and updates the response model in the get_stop_times_by_route_code_and_agency function. The join condition in the function has been modified to use the stop_id column instead of the stop_id_clean column. Additionally, the response model has been updated to include the arrival_time_clean and departure_time_clean fields as time objects. These changes improve the efficiency and accuracy of the function.