Repository navigation
Avoid graph dependency - #1950
Conversation
|
Nice! Maybe we should add some constants or an enum for mode=0,1,2,3,4? |
|
enums would be clearer but they make the call so long :) ? fetchWayGeometry(ONLY_PILLAR_NODES) or we remove NODES from them ... |
|
Ok but whats the problem with the long names? So far every time I see |
|
I find the numbers kind of logical, but obviously it is not ;) ... so, will introduce the enum! |
If you have no objections I will use BASE_AND_PILLAR to indicate the order is "base+pillar nodes" and not "pillar nodes + base". |
|
Ah you mean the order in the returned point list? Yes that makes sense. |
I think I found a good solution to the graph-dependency problem with always have in the Weighting: now we can fetch the tower nodes only (should be similar fast) without a NodeAccess only via the EdgeIteratorState without introducing a new method.
And additionally I found a minor speed improvement (moved BBox creation out of the loop).
This also helps making stuff in #1776 easier.