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

Frequencies #21

Open
pietercolpaert opened this issue Nov 18, 2015 · 4 comments
Open

Frequencies #21

pietercolpaert opened this issue Nov 18, 2015 · 4 comments
Milestone

Comments

@pietercolpaert
Copy link
Member

We need to process frequencies as well...

This means reading an extra file if it exists, and adding extra connections based on the connectionRules stream

@pietercolpaert pietercolpaert added this to the 1.0 milestone Nov 21, 2015
@pietercolpaert
Copy link
Member Author

The problem I have with frequencies is the semantic intention: the departureTime and arrivalTime become an interval, and the amount of resulting trips may also be a bit more or less depending on the line. I’m unsure how to translate this to connection objects that get a persistent identifier.

@derhuerst
Copy link
Contributor

the amount of resulting trips may also be a bit more or less depending on the line.

I don’t understand what you mean. Doesn‘t the amount of trips only depend on the headway (and start and end time)?

I‘m rather worried about extact-times !== 1, because the connection won‘t have a fixed time anymore, so a Linked Connections endpoint might convey a degree of certainty (time-wise) that the data/reality doesn‘t provide.

I’m unsure how to translate this to connection objects that get a persistent identifier.

Currently the id of a connection is https://github.com/linkedconnections/gtfs2lc/blob/cb0bdac0e790dc0ebea811111d9794fc13aa308c/lib/URIStrategy.js, right? Couldn‘t the id of a freqnecies-based connection be {trips.startTime(yyyyMMdd)}/{depStop}/{trips.trip_id}/{index}? I would be really hard to resolve this ID with non-GTFS data sources though.

@derhuerst
Copy link
Contributor

derhuerst commented Feb 22, 2021

FYI I have updated gtfs-utils to use plain for await loops & async functions. This means that you can just for await-loop over all connections (including frequencies.txt). It's Node 12+ though.

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