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

Configurable way to add time for transfers #1

Open
pietercolpaert opened this issue Oct 8, 2015 · 1 comment
Open

Configurable way to add time for transfers #1

pietercolpaert opened this issue Oct 8, 2015 · 1 comment

Comments

@pietercolpaert
Copy link
Member

There are 2 type of transfers:

  1. Transfers at the same stop (e.g., get out, wait for a bit, get on again)
  2. Transfers where you have to walk to another stop

Case 1: transfer at same stop

We should add 1 minute of transfer time by default.

This case can be detected through other properties: different gtfs:trip, we're taking a different connection that the previous connection's lc:nextConnection, different gtfs:route, et cetera. We can support different ways. If nothing is set, we will always assume it's the same stop.

Case 2: walk to a different stop

We should add an amount of time which is retrieved in a certain way and which depends on user configuration: e.g., someone in a wheelchair, someone with a foldable bike, a sprinter, etc.

This is commonly referred to as "footpaths". Calculating footpaths is an intensive job and is a data problem on its own. It's not a problem we should be fixing in csa.js. Therefore we should have a hook which can be used by users of this library to give a footpath for the stations we're using in the queries.

Trade-off

Just in time information vs. performance: footpaths may become a bottleneck if not preloaded in memory

@pietercolpaert
Copy link
Member Author

@sballieu Are you going to pull request a general fix for this?

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