The Index.stopTimesForStop is used in both the REST and the Transmodel API and is typically used for station boards and to show departures for specific stops in a client. It now searches through the GraphIndex.patternsForStop multimap in order to find all the patterns active on that stop. As this multimap is created on OTP startup, it does not handle trips being added via realtime updates.
This is solved in Entur's branch by keeping an index of realtime TripPatternsForStop in the TripPatternCache.
The Index.stopTimesForStop is used in both the REST and the Transmodel API and is typically used for station boards and to show departures for specific stops in a client. It now searches through the GraphIndex.patternsForStop multimap in order to find all the patterns active on that stop. As this multimap is created on OTP startup, it does not handle trips being added via realtime updates.
This is solved in Entur's branch by keeping an index of realtime TripPatternsForStop in the TripPatternCache.