Skip to content

Commit 0c348a4

Browse files
committed
Update documentation
1 parent 7e6c517 commit 0c348a4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/org/opentripplanner/transit/service/TransitService.java

+4
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ List<TripTimeOnDate> stopTimesForPatternAtStop(
186186

187187
GroupOfRoutes getGroupOfRoutesForId(FeedScopedId id);
188188

189+
/**
190+
* Return the timetable for a given trip pattern and date, taking into account real-time updates.
191+
* If no real-times update are applied, fall back to scheduled data.
192+
*/
189193
@Nullable
190194
Timetable getTimetableForTripPattern(TripPattern tripPattern, LocalDate serviceDate);
191195

src/main/java/org/opentripplanner/updater/vehicle_position/PollingVehiclePositionUpdater.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ private static TripPattern getPatternIncludingRealtime(
9999
Trip trip,
100100
LocalDate sd
101101
) {
102-
// TODO OTP2 RT_VP a new instance of DefaultTransitService must be created to retrieve
103-
// the latest TimetableSnapshot
102+
// a new instance of DefaultTransitService must be created to retrieve
103+
// the current TimetableSnapshot
104104
return (new DefaultTransitService(transitModel)).getPatternForTrip(trip, sd);
105105
}
106106
}

0 commit comments

Comments
 (0)