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

Update `schedules` page to use new `all/route_overview` #545

Open albertkun opened 3 months ago

albertkun commented 3 months ago

@anithegregorian As per #540 we refactored the api endpoint:

https://api.metro.net/all/route_overview

to use all/route_overview's data that is now categorized with route_type and routes as an array.

route_type are the following:


[
    {
        "route_type": "rail",
        "routes": [
            { ...route... },
            { ...route... },
        ]
    },
    {
        "route_type": "busway",
        "routes": [
            { ...route... },
            { ...route... },
        ]
    },
    {
        "route_type": "bus",
        "routes": [
            { ...route... },
            { ...route... },
        ]
    },
]

Feel free to let me know if you have any questions!