Skip to content

Commit 8fd3d43

Browse files
committed
refactor: Remove all real time trip updates from Raptor timetables
The existing code only remove real time trip updates with modified stop-patterns, not added trips(NeTEx ExtraJourney). If an ExtraJourney is canceled, the first update is not removed.
1 parent fb2cf02 commit 8fd3d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/main/java/org/opentripplanner/routing/algorithm/raptoradapter/transit/mappers/RealTimeRaptorTransitDataUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void update(
214214
for (TripPatternForDate tripPatternForDate : previouslyUsedPatterns) {
215215
if (tripPatternForDate.getServiceDate().equals(date)) {
216216
TripPattern pattern = tripPatternForDate.getTripPattern().getPattern();
217-
if (!pattern.isStopPatternChangedInRealTime()) {
217+
if (!pattern.isRealTimeTripPattern()) {
218218
continue;
219219
}
220220
var oldTimeTable = timetableProvider.apply(pattern.getId());

0 commit comments

Comments
 (0)