HSLdevcom / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
33 stars 31 forks source link

DT-2150 #206

Closed vesameskanen closed 6 years ago

vesameskanen commented 6 years ago

Itinerary filtering implemented. Fixes the following tickets:

DT-2549 DT-2547 DT-2020 DT-2483

Also reduces errors of DT-2553 because some itineraries with long waits get filtered. Not all though, because plain duration is currently not enough to cause filtering.

Currently filtering does not compute extra itineraries, because filtering affects results only seldomly. This could be changed so that runtime itinerary count = original itinerary count + floor(sqrt(filtering)). So, when filtering becomes high and starts dropping itineraries easily, some extra entries would be computed.

Filtering can be debugged by adding the line:

<logger name="org.opentripplanner.api.resource.TripPlanFilter" level="debug" />

into src/main/resources/logback.xml .