Skip to content

Remove duplicated points at ViaPoints and add getLength to Instructions - #1219

Merged
karussell merged 1 commit into
graphhopper:masterfrom
boldtrn:issue_1216
Nov 17, 2017
Merged

karussell merged 1 commit into
graphhopper:masterfrom
boldtrn:issue_1216

Conversation

@boldtrn

@boldtrn boldtrn commented Nov 14, 2017

Copy link
Copy Markdown
Member

This PR fixes #1216 and also addresses parts of #1138.

This PR removes the duplicated point at ViaInstructions. Due to that we could also improve the Instructions and added the getLength method to the Instruction, which makes the code easier to read and is a step towards making instructions more similar to PathDetails.

@karussell

Copy link
Copy Markdown
Member

Even better thanks!

@karussell karussell added this to the 0.10 milestone Nov 14, 2017

@karussell karussell Nov 14, 2017 •

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.

Would you write: 'In general this will just resolve ot the size of the PointList except for ...'? Because the 'last-first' definition still holds for ViaInstructions and I first thought 'this is not true' was referring to the definition

@karussell

Copy link
Copy Markdown
Member

Would you mind trying to squash these 3 commits :) ?

…pper#1216

Introduce Instruction.getLength() that fixes the ViaPoint issue
@boldtrn

boldtrn commented Nov 17, 2017

Copy link
Copy Markdown
Member Author

Squashed this PR :)

@karussell karussell left a comment

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.

Cool, thanks! (Hope it was easy :) ?)

@karussell
karussell merged commit 157ce0c into graphhopper:master Nov 17, 2017
@boldtrn

boldtrn commented Nov 18, 2017

Copy link
Copy Markdown
Member Author

Hope it was easy :)

I am still not a fan of local squashing :). I often have uncommitted changes in my project, but you cannot squash if there are uncommitted changes, so you have to revert them or stash them.

@boldtrn
boldtrn deleted the issue_1216 branch November 18, 2017 00:12
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.

path details with 'time' returns server error

2 participants