Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update schedules page to use new all/route_overview #545

Open
albertkun opened this issue Jun 7, 2024 · 0 comments
Open

Update schedules page to use new all/route_overview #545

albertkun opened this issue Jun 7, 2024 · 0 comments

Comments

@albertkun
Copy link
Contributor

albertkun commented Jun 7, 2024

@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:

  • rail
  • busway
  • bus
  • express (this can be ignored)
[
    {
        "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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant