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

Parse StopTime as last entity in GtfsReader #57

Open
highsource opened this issue Jul 11, 2015 · 0 comments
Open

Parse StopTime as last entity in GtfsReader #57

highsource opened this issue Jul 11, 2015 · 0 comments

Comments

@highsource
Copy link

GtfsReader currently reads StopTimes between Trip and ServiceCalendar. Would it be possible to parse StopTimes as the last entity? As far as I know, StopTimes is normally the largest file in GTFS and StopTimes (indirectly) reference ServiceCalendar and ServiceCalendarDate via Trip/serviceId.

I'm implementing a "streaming" load of GTFS into a graph database (as a time-expanded graph). The import runs for some specified date. So I'd like to filter out irrelevant StopTimes and I need ServiceCalendars and ServiceCalendarDates for this before reading StopTimes.

I've solved it at the moment by subclassing the GtfsReader and changing the order of the entity classes. I think it is generaly reasonable and wanted to propose it as a change.

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