Hello guys,
In a certain route segment that graphhopper returns me, makes a prohibited turn.
When I route in graphhopper web, this wrong turn does not happen.
Notice that, I have two points diverting, being the second one near to the “P” sign at the bottom of the image.
Checking osm, I have the follow configuration for this segment.
You can see the changes in the following link: Changeset: 153977493 | OpenStreetMap
Any ideia why this behaviour is happening? I’m using the latest osm release 240729.
Did you enable turn restrictions in the config.yml?
Hello @karussell ,
I’ve just enabled the u-turn restrictions, and in a certain segment, it worked. But I’m facing another awkward situation.
Instead of follow strictly foward in the same segment, the returned route takes a detour. But if I set an intermediate point, the route forces to move straight.
Do you know what may been causing this?
Maybe there is a maxspeed
set for the “detour way” but not for the “straight way”?
Can you replace one line in CarAverageSpeedParser → applyMaxSpeed with
return Math.min(speed, isValidSpeed(maxSpeed) ? maxSpeed * 0.9 : 140));
and see if this fixes the problem?
See also my comment here regarding the estimated times for car.