You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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!
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.
The text was updated successfully, but these errors were encountered: