Skip to content

make sure to not-collapse different travel modes#2877

Merged
MoKob merged 1 commit intomasterfrom
fix/collapse-same-modes
Sep 8, 2016
Merged

make sure to not-collapse different travel modes#2877
MoKob merged 1 commit intomasterfrom
fix/collapse-same-modes

Conversation

@MoKob
Copy link
Copy Markdown

@MoKob MoKob commented Sep 8, 2016

Issue

resolves #2876

Tasklist

  • add regression / cucumber cases (see docs/testing.md)
  • review
  • adjust for for comments

@MoKob MoKob added this to the 5.4.0 milestone Sep 8, 2016

When I route I should get
| waypoints | route | turns |
| k,j | on,ferry,,ferry,off,off | depart,new name straight,continue uturn,turn straight,new name straight,arrive |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The new name straight comes from the ferry way? To be honest I expected a notification here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yeah. Thats something we have to improve on. It's a shortcoming from getInstructionForObvious. But thats a different issue (in the process of opening it)

@MoKob MoKob force-pushed the fix/collapse-same-modes branch from 9437413 to 749bab1 Compare September 8, 2016 12:56
else if (isCollapsableInstruction(current_step.maneuver.instruction) &&
current_step.maneuver.instruction.type != TurnType::Suppressed &&
steps[getPreviousNameIndex(step_index)].name_id == current_step.name_id &&
// canCollapseAll is also checking for compatible turns
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What do you mean by this? compatible checks the travel mode, but what do you mean with compatible turns? from one travel mode to another I suppose?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I am referring to the function compatible by name. I can also say steps if that is less confusing.

@MoKob MoKob force-pushed the fix/collapse-same-modes branch from 749bab1 to c306a59 Compare September 8, 2016 13:24
@daniel-j-h daniel-j-h mentioned this pull request Sep 8, 2016
5 tasks
@MoKob MoKob merged commit c306a59 into master Sep 8, 2016
@MoKob MoKob deleted the fix/collapse-same-modes branch September 8, 2016 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't Collapse different mode-types

2 participants