Skip to content

Allow running isochrones with profiles supporting turn costs (without turn costs) - #1975

Merged
easbar merged 8 commits into
masterfrom
isochrone_turn_costs_fix
Mar 31, 2020
Merged

easbar merged 8 commits into
masterfrom
isochrone_turn_costs_fix

Conversation

@easbar

@easbar easbar commented Mar 29, 2020 •

Copy link
Copy Markdown
Member

This is based on #1974.
Fixes one of the issues of #1967. With this fix is no longer problematic to run isochrone requests when the profile in use supports turn costs and the turn costs are simply ignored (they cannot be dealt with because we are missing an edge-based isochrone implementation). The alternative would be forcing another profile with turn_costs: false, but this seems ugly and at some point we probably will have an edge-based isochrone algorithm.

@easbar easbar added this to the 1.0 milestone Mar 29, 2020
@easbar
easbar requested a review from karussell March 29, 2020 09:21
@easbar easbar mentioned this pull request Mar 29, 2020
2 tasks done
if (hintsMap.getBool(Parameters.Routing.EDGE_BASED, false))
throw new IllegalArgumentException("Currently you cannot use edge-based for /isochrone. Do not use `edge_based=true`");
if (hintsMap.getBool(Parameters.Routing.TURN_COSTS, false))
throw new IllegalArgumentException("Currently you cannot use turn costs for /isochrone, Do not use `turn_costs=true`");

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.

There is a small mistake for Landmark.DISABLE -> ch -> lm

@easbar
easbar merged commit 58fde25 into master Mar 31, 2020
@easbar
easbar deleted the isochrone_turn_costs_fix branch March 31, 2020 14:51
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