Help on Curvature settings in custom model

Hi, I need some help to understand curvature. Although I can get expected results on some routes (example here ) on others I can’t seem to make it working as expected.

In this example I’m using the below custom model, but no matter how I change the values I can’t seem to have graphhopper to prefer the twisting road by the river over of the straighter one (primary way):

{ “priority”: [
{“if”: “curvature > 0.7”,
“multiply_by”: “0.01”} ]
}

Any clue?

Here a smaller detail, tunnel is always preferred

Oh, this is a bug. The problem comes from the fact that for beeline we currently ignore elevation which should not be. Have fixed in master and will be deployed soonish.

1 Like

Wonderful! I’ll test as soon as available - thanks

@karussell I’ve downloaded master.zip, compiled into 0.12-Snapshot and tested but I’m getting the same result, i.e. straight gallery is preferred. Am I doing something wrong? Or maybe the change is not in yet?

Wait - if I increase curvature, I now obtain the resutl I desire!

While on graphhopper.com/maps it is not:

So, something has changed, I’ve to play with curvature values more to get desired outcome!

It appears that with such high curvature value and low multiplier factors, something weird happens on other sections of the route.

Note that the change is not yet deployed but should be done in a few days.

1 Like