-
Notifications
You must be signed in to change notification settings - Fork 52
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
handling of GTFS Time values #175
Comments
Thank you for noting this! Currently, we're doing it wrong: motis/base/loader/src/timezone_util.cc Lines 82 to 94 in 9c5536c
Basically, the GTFS and HAFAS Rohdaten parsers create a The question is also: do all the converters and data management tools for GTFS conform? Maybe they overlooked this section in the GTFS standard, too. |
I have listed some of the relevant Issues here: r-transit/tidytransit#175 (comment) Also, this is the discussion in the GTFS repo: google/transit#15 |
Thank you very much for your effort of informing everybody about this issue! I think handling these edge cases is important to make Open Source + Open Data a viable option compared to commercial closed approaches. I'll look into this and try to make your test case green :-) |
This should now be correctly implemented in MOTIS' upcoming nigiri core: Thank you @derhuerst for pointing out this issue! Your test cases were really helpful for implementing the conversion correctly. |
GTFS Time is not defined relative to midnight, but relative to noon - 12h. While that makes "writing" GTFS feeds easier, it makes processing a lot harder. As an example, I expect
departure_time
of00:30
of a trip running on2021-03-28
to happen at1616884200
/2021-03-28T00:30+02:00
, not at1616887800
/2021-03-28T00:30+01:00
;departure_time
of06:30
of a trip running on2021-03-28
to happen at1616905800
/2021-03-28T06:30+02:00
, not at1616909400
/2021-03-28T06:30+01:00
.I'm currently checking well-known GTFS parsers/consumers for this bug, so I wondered if MOTIS is affected by the described problem on those days that the DST <-> standard time switch occurs on? I'm not familiar with this code base, I tried to dig into how GTFS is parsed, but I couldn't understand enough from quickly looking at the code.
related: google/transit#15
The text was updated successfully, but these errors were encountered: