-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Reading GTFS data fails in 0.19 but works in 0.18 #2113
Comments
This is probably caused by this commit: 92cbaed. Since trip 715615 has last stop duplicated and only the second has arrival/departure time. And since the last duplicated stop is removed last stop doesn't have arrival/departure time any more and runtime exception happens. I'm working on a fix. |
I think the main issue is typo in this line in previously mentioned commit: - prev.setDepartureTime(st.getDepartureTime());
+ st.setDepartureTime(st.getDepartureTime()); Previously departure time was copied from removed stop but now it isn't and But is there actually a reason for duplicated stops? Since most of them both have arrival and departure time. If we fix this typo times when vehicle is at the stop can be wrong since one stop-time is discarded.
In both times first time is arrival second is departure. According to this vehicle comes at the stop OMNITRANS_334 at 06:01:00 and then drives of at the same time. But is at the same stop at 06:03:00 with no stops in between. It would make more sense if the vehicle would be at the stop at 06:01:00 and would depart at 06:03:00. |
Thanks for tracking down the issue! You're right that the duplicated stops situation is strange. I looked at Google and Here.com public transit directions and Google seems to take the 6:03 time for both departure and arrival and here.com the 6:01 time. I'm a total novice regarding GTFS, but would it make sense to combine the adjacent rows in stop_times.txt when parsing:
to show arrival time as 06:01:00 and departure as 06:03:00?
Would it mess up the stop sequence? |
Stop sequences need only to be increasing. Numbers can be missing. 2015-09-03 16:10 GMT+02:00 Ardo Illaste notifications@github.com:
|
Working with San Bernardino's Omnitrans GTFS data and OSM data for LA I get the following error when when starting OTP server:
Using 0.19 OTP:
feedvalidator
gives no errors and the same data files work fine with OTP 0.18.The text was updated successfully, but these errors were encountered: