Skip to content

Fallback to recorded/expected arrival/departure time if other one is missing in SIRI-ET#4055

Merged
hannesj merged 4 commits into
opentripplanner:dev-2.xfrom
entur:otp2_netex_use_fallback
May 10, 2022
Merged

Fallback to recorded/expected arrival/departure time if other one is missing in SIRI-ET#4055
hannesj merged 4 commits into
opentripplanner:dev-2.xfrom
entur:otp2_netex_use_fallback

Conversation

@hannesj

@hannesj hannesj commented Apr 1, 2022

Copy link
Copy Markdown
Contributor

Summary

Currently we get a lot of non-increasing times due to either the bus leaving before it's assigned time or being expected to arrive late at the final stop. This is due to either recorded or expected arrival or departure time being missing, so that the scheduled time is used instead. Instead we should use the actual or expected departure or arrival time to fill in the missing time.

@hannesj hannesj added Entur Test This is currently being tested at Entur +Real-Time The issue/PR is related to RealTime updates labels Apr 1, 2022
@hannesj hannesj added this to the 2.2 milestone Apr 1, 2022
@hannesj
hannesj requested a review from a team as a code owner April 1, 2022 09:14
@leonardehrenfried

Copy link
Copy Markdown
Member

Also discussed in #3962. Is it a good idea to improve the test coverage of TimeTableHelper?

@t2gran t2gran added the !Improvement A functional improvement or micro feature label Apr 5, 2022
@hannesj
hannesj marked this pull request as draft April 5, 2022 08:46
@hannesj
hannesj force-pushed the otp2_netex_use_fallback branch from 3df153c to 51727d6 Compare April 22, 2022 10:03
@hannesj hannesj mentioned this pull request May 10, 2022
@hannesj
hannesj force-pushed the otp2_netex_use_fallback branch from 51727d6 to 8b14c02 Compare May 10, 2022 12:00
@hannesj
hannesj marked this pull request as ready for review May 10, 2022 12:13
@hannesj
hannesj requested review from Bartosz-Kruba and lassetyr May 10, 2022 12:51
lassetyr
lassetyr previously approved these changes May 10, 2022
Comment thread src/ext/java/org/opentripplanner/ext/siri/TimetableHelper.java Outdated
Comment thread src/ext/java/org/opentripplanner/ext/siri/TimetableHelper.java
Comment thread src/ext/java/org/opentripplanner/ext/siri/TimetableHelper.java
Comment thread src/ext/java/org/opentripplanner/ext/siri/TimetableHelper.java
Comment thread src/ext/java/org/opentripplanner/ext/siri/TimetableHelper.java
Comment thread src/ext/java/org/opentripplanner/ext/siri/TimetableHelper.java
Co-authored-by: Bartosz-Kruba <98400292+Bartosz-Kruba@users.noreply.github.com>
@hannesj
hannesj merged commit c729345 into opentripplanner:dev-2.x May 10, 2022
@hannesj
hannesj deleted the otp2_netex_use_fallback branch May 10, 2022 16:56
t2gran pushed a commit that referenced this pull request May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Entur Test This is currently being tested at Entur !Improvement A functional improvement or micro feature +Real-Time The issue/PR is related to RealTime updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants