You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand I could use the curbside feature as a workaround for now.
You just set curbside=right (or left) for all points then there will not be any u-turns, but also you are forcing a certain side of the road (that is why this is rather a workaround and we have this issue to support this use-case properly).
A little roadmap since we keep discussing this over and over again:
remove unfavored virtual edges in map-matching (use edge-based routing instead)
allow setting a finite penalty when using startOut/targetIn edges for bidir algorithms
implement via-routing using startOut/targetIn edges instead of unfavored virtual edges
implement heading using startOut/targetIn edges instead of unfavored virtual edges
remove unfavored virtual edges from code base
implement advanced via-routing algorithm that finds the ideal start/target edges at every via-point by taking into account the following legs of the route
Activity
michaz commentedon Oct 25, 2019
Looking forward to this, as this has applications to everything from map-matching to tour planning.
easbar commentedon Nov 4, 2019
Related:
https://discuss.graphhopper.com/t/suboptimal-route-with-via-points-and-no-u-turn/4866
michaz commentedon Nov 5, 2019
How interesting, thank you! To me, this looks like he should try map-matching rather than via-routing. I think the problem is solved there.
michaz commentedon Nov 5, 2019
Actually, via-routing without the greediness is map-matching. Isn't it?
NoamDev commentedon May 12, 2020
Hi @easbar,
I understand I could use the curbside feature as a workaround for now.
Could you please explain to me how to do it correctly?
easbar commentedon May 12, 2020
You just set
curbside=right(or left) for all points then there will not be any u-turns, but also you are forcing a certain side of the road (that is why this is rather a workaround and we have this issue to support this use-case properly).NoamDev commentedon May 12, 2020
Oh, that's horrible, to make it actually work, I'd have to check any possible combination...
And even then it might not work.
I guess I'm right not to expect any work on it anytime soon (because work is centered around 1.0 release).
NoamDev commentedon May 13, 2020
When a way point is a virtual node, it would be easy.
We should just set the outEdge as the other edge of the virtual node.
In order to make that work even on tower node, we can use the same suggestion I made in (#1258).
easbar commentedon Sep 30, 2020
A little roadmap since we keep discussing this over and over again:
easbar commentedon Apr 17, 2022
I did some related work here:
https://github.com/graphhopper/graphhopper/tree/start_target_edge_weights
https://github.com/graphhopper/graphhopper/tree/edge_penalties
https://github.com/graphhopper/graphhopper/tree/ch_mm
Somehow I forgot about this bit maybe it is time to resurrect this work.