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
get turn information via 'from-edge' instead of the 'via node'. Seems not yet worth it, it might be okay to just add the shortcut turn-info to the current node-based turn-info, maybe a sorted insert to possibly return earlier while searching. Because an edge-based turn information storage requires some changes and makes the turn information retrieval slightly more complex. We would need to store the turn information onto the 'from-edge' but also on the 'to-edge' when we traverse the graph in 'reverse' direction. Then also accessing the 'to-edge' turn information needs refactoring as we do not want to call graph.getEdgeProps for every edge (see good alternatives in this issue). Or the turn information retrieval is inefficient for 'to-edges'
sorted turn information insert to make lookup faster
clean up flagencoders somehow to remove OSMReader dependency
it could be valueable to create a reusable variant of graph.getEdgeProps to avoid heavy object creation. E.g. edgeExplorer.getEdge(edgeId, adjNode) and/or even very low level edgeExplorer.getField(edgeId, edgeRowIndex)
Algorithm.updateBestPath requires EdgeIteratorState which is only necessary to substract the weight of the overlapping edge - can we avoid it?
Maybe a little bit out-of-the-game, but two questions:
did you consider expanding implementation to take into account also longer than 2 edges turn relation? As I saw in the code, the lowest and most efficient to the current implementation way would be to keep start and end of relation, via node and relation length. So basically, now it would require one additional field in turn cost table, but also something which allows to pass "edge history" to weight function, so something like SPTEntry... :/ not so good, also won't work with CH.
it could be valueable to create a reusable variant of graph.getEdgeProps to avoid heavy object creation. E.g. edgeExplorer.getEdge(edgeId, adjNode) and/or even very low level edgeExplorer.getField(edgeId, edgeRowIndex)
We have now (for some time) have graph.getEdgeIteratorState(edge, adjNode), but that has some problems as well or what was meant here? And how is this related to this issue?
Algorithm.updateBestPath requires EdgeIteratorState which is only necessary to substract the weight of the overlapping edge - can we avoid it?
We still do this subtraction, but only for non-CH. Why is this a problem and how is it related to this issue?
Why is this a problem and how is it related to this issue?
I think is issue is very old (6 years) and I just wanted to write down some possible improvements after the big refactoring that introduced turn costs. So it is more a issue collection.
Activity
Azbesciak commentedon Feb 20, 2019
Maybe a little bit out-of-the-game, but two questions:
SPTEntry... :/ not so good, also won't work with CH.easbar commentedon Jul 15, 2020
This is
#446#3155See this forum discussion: https://discuss.graphhopper.com/t/node-based-ch-with-turn-cost/5677/12
This might be an option for #2084, but why was this bullet point resolved, the turn costs are still (or again?) stored by via node.
This also might be an option for #2084
We have now (for some time) have
graph.getEdgeIteratorState(edge, adjNode), but that has some problems as well or what was meant here? And how is this related to this issue?We still do this subtraction, but only for non-CH. Why is this a problem and how is it related to this issue?
I think we can close here in favor of #2084?
karussell commentedon Jul 15, 2020
I think is issue is very old (6 years) and I just wanted to write down some possible improvements after the big refactoring that introduced turn costs. So it is more a issue collection.
Sure :)