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

Add support for MTA bus data #28

Open
wilsonchaney opened this issue Jan 1, 2023 · 1 comment
Open

Add support for MTA bus data #28

wilsonchaney opened this issue Jan 1, 2023 · 1 comment

Comments

@wilsonchaney
Copy link
Contributor

It might be worth it to add support for MTA bus data. It's a separate API from the realtime subway one, but has lots of similarities.

We could probably use their SIRI API (which supports JSON responses) and just parse the responses into pydantic models, similar to what you did for subway data.

I haven't looked into this in much depth but I think it wouldn't be too hard. I might take a stab at it if I have time in the coming weeks, figured I'd file an issue to get your thoughts.

@nolanbconaway
Copy link
Owner

Hey- I hadn't considered it!

I think you're right that this would involve (1) pydantic models for the JSON responses (or whatever response format ends up being best), and (2) methods/functions to resolve human readable bus line names and request the data.

There's no reason it can't live in underground- PRs are of course welcome!

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

2 participants