Skip to content

Add bike rental vs walking filter#3446

Merged
gmellemstrand merged 6 commits into
opentripplanner:dev-2.xfrom
entur:otp2_bikerental_vs_walking_filter
May 4, 2021
Merged

Add bike rental vs walking filter#3446
gmellemstrand merged 6 commits into
opentripplanner:dev-2.xfrom
entur:otp2_bikerental_vs_walking_filter

Conversation

@gmellemstrand

Copy link
Copy Markdown
Contributor

Summary

This PR adds a new filter for bike rental itineraries, which filters out itineraries that contain a lot of walking compared to actual bike rental. A value for the ratio of distance that has to consist of bike rental compared to the total distance of the Itinerary is specified. The default is 0.3, which means that at least 30% of the total distance has to be covered on a rented bike.

Issue

Closes #3445

Unit tests

RemoveBikeRentalWithMostlyWalkingTest has been added

Documentation

Javadoc added

Changelog

Changelog entry added

@gmellemstrand gmellemstrand added the Entur Test This is currently being tested at Entur label Apr 30, 2021
@gmellemstrand
gmellemstrand requested a review from a team April 30, 2021 09:09
@leonardehrenfried

Copy link
Copy Markdown
Member

This is becoming a bit of a cat-and-mouse game! :)

@gmellemstrand
gmellemstrand merged commit 0229ed6 into opentripplanner:dev-2.x May 4, 2021
@gmellemstrand
gmellemstrand deleted the otp2_bikerental_vs_walking_filter branch May 4, 2021 13:37
@t2gran t2gran added this to the 2.1 milestone Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Entur Test This is currently being tested at Entur

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bike rental itineraries with mostly walking not wanted

3 participants