Trip schedules are filtered in OTP so only trips in service are passed to Raptor, hence there is not necessary to check if a trip is in service. The current implementation do so. The TripSearch can be simplified and possibly be a bit faster.
The TripSearch is implemented as a strategy, so it is easy to provide another implementation allowing the option to choose.
Trip schedules are filtered in OTP so only trips in service are passed to Raptor, hence there is not necessary to check if a trip is in service. The current implementation do so. The TripSearch can be simplified and possibly be a bit faster.
The TripSearch is implemented as a strategy, so it is easy to provide another implementation allowing the option to choose.