Skip to content

Commit

Permalink
Improve Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Sep 16, 2024
1 parent 6a06341 commit 7e2a181
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
* Itineraries matching the start(earliest-departure-time) are included and itineraries matching
* the end(latest-departure-time) are not. The filter is {@code [inclusive, exclusive]}.
* <p>
* For arrive by searches, the street/flex-only results are treated differently:
* Arrive-by searches results are treated differently:
* <p>
* Arrive-by transit result are filtered by their departure time and whether they don't depart
* after the end of the computed search window which is dependent on the heuristic's minimum
* transit time.
* This doesn't work because street/flex-only can be shorter than the transit ones and often
* end up time-shifted right up to the arrive by time.
* transit time. This is identical to the depart-at searches.
* </p>
* This doesn't work for street/flex-only because they can be shorter than the transit ones and often
* end up time-shifted right up to the arrive-by time.
* <p>
* For that reason the arrive-by street/flex-only results are only checked if they start after the
* latest-departure-time.
* <a href="https://github.com/opentripplanner/OpenTripPlanner/issues/6046">Further reading.</a>
*/
public class OutsideSearchWindowFilter implements RemoveItineraryFlagger {
Expand Down

0 comments on commit 7e2a181

Please sign in to comment.