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

Feature: train station + bus stop integration #47

Open
JasonBarahan opened this issue Dec 1, 2023 · 0 comments
Open

Feature: train station + bus stop integration #47

JasonBarahan opened this issue Dec 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@JasonBarahan
Copy link
Owner

Description

Most (if not, all) GO train stations also have bus stops within the same station complex, or within walking distance of the station property. The API treats train station departures and bus stop departures separately.

For example, Aurora GO has a bus loop, Cooksville GO has bus bays, and Union Station has its own bus terminal.

This feature integrates departures from train stations and bus stops associated with each station for simplicity, especially when train lines are substituted with bus service ('bustituted').

Caveats

  • The API treats train station departures and bus stop departures separately. We will need to make separate API calls to the same endpoint and merge the JSON objects together, then sort them by time.
  • Some GO stations have multiple bus stops associated with it (for example, Bramalea GO has three bus stops, each with their own ID and requiring their own API calls). This is presumably due to express bus services serving selected stations, in addition to multiple branches of the bus line serving the same station.
  • The current implementation of 'next departure retrieval' only includes three departures. Considering some bus lines operate in conjunction with train service (for example, Lakeshore West service is complemented by express bus route 16 between Toronto and Hamilton) combining bus service may make returned information less useful to the user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant