Skip to content

Fix bugs in park and ride search#2424

Merged
novalis merged 4 commits into
opentripplanner:masterfrom
entur:rutebanken_park_and_ride_bugfix
May 14, 2017
Merged

Fix bugs in park and ride search#2424
novalis merged 4 commits into
opentripplanner:masterfrom
entur:rutebanken_park_and_ride_bugfix

Conversation

@fredinge

Copy link
Copy Markdown
Contributor

Solves #2421

When finding the closest vertex to the destination for park
and ride , the traverse mode must be 'walk' and not 'car'.

When finding the closest vertex to the destination for park
and ride , the traverse mode must be 'walk' and not 'car'.
@fredinge fredinge changed the title Fix bug in finding end vertex for park and ride trips. Fix bugs in park and ride search Mar 23, 2017
if (modes.getCar())
nonTransitMode = TraverseMode.CAR;
// for park and ride we will start in car mode and walk to the end vertex
if(endVertex && (options.parkAndRide || options.kissAndRide)){

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please correct the formatting on this line (and the else) to match the rest of OTP.

@novalis

novalis commented May 1, 2017

Copy link
Copy Markdown
Contributor

Can you provide a test for this?

@fredinge

Copy link
Copy Markdown
Contributor Author

Added some unit tests and corrected formatting.

@novalis novalis merged commit 121660c into opentripplanner:master May 14, 2017
@demory demory mentioned this pull request Aug 16, 2017
@t2gran t2gran deleted the rutebanken_park_and_ride_bugfix branch May 6, 2020 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants