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

New endpoint for schedules page - `scheduled_stop_times` #431

Open matikin9 opened 7 months ago

matikin9 commented 7 months ago

Endpoint: /LACMTA/unique_shape_scheduled_stop_times/{route_code}?direction_id={direction_id} Table name: unique_shape_stop_times

Hierarchy of data: direction_id list of day_of_week per direction list of trips per day of week list of stops per trip list of departure times per stop

Discuss with Ani how we should structure the payload?

Add an endpoint where we pass in direction_id? We return the stop_lists (with departure_times for each stop) for all trips with unique shape_ids (for that route + direction_id).

matikin9 commented 4 months ago

Future/End state - the idea for this is to allow us to have a dropdown where the user can select from all possible shapes, like how MBTA has their schedule pages.