Skip to content

Includes default u-turn cost in time calculation, fixes #1585. - #1635

Merged
easbar merged 8 commits into
masterfrom
default_uturn_times
Jun 12, 2019
Merged

easbar merged 8 commits into
masterfrom
default_uturn_times

Conversation

@easbar

@easbar easbar commented Jun 11, 2019

Copy link
Copy Markdown
Member

This PR fixes the last remaining issue in #1585. The time calculation did not include the default u-turn cost (used when TraversalMode.EDGE_BASED_2DIR_UTURN is enabled).

With this in place I think we are ready to finally clean up the u-turn traversal mode etc. in #1520 :)

@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.

Thanks, looks good :)

}

public double getDefaultTurnCost() {
return defaultUTurnCost;

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.

Should we indicate the unit in the docs like we do for the setter? (Also do you think we should refactor the unit to milliseconds at a later point for consistency with the calcMillis method?)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok I added javadocs. And yes we should try to make the units consistent.

@karussell karussell added the bug label Jun 12, 2019
@karussell karussell added this to the 0.13 milestone Jun 12, 2019
@easbar
easbar merged commit 05a7fb1 into master Jun 12, 2019
@easbar easbar mentioned this pull request Jun 12, 2019
4 tasks done
@karussell
karussell deleted the default_uturn_times branch June 14, 2019 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants