Description
Is it possible make so edgeDataReducer or its result can take forward or backward into consideration like the weight function can.
I am creating an algoritm to reconstruct the path parts back to the original geoJson for more detailed path instructions and are storing the ids of the geoJson in an array in the edgeDataReducer (and handles duplicates etc).
The edgeData returned with the path will then look something like [1, 2, [3, 4], 5]
and when taking the path in reverse [5, [3, 4], 2, 1]
where the nested array is the result of an edge data reduction. The problem is that the reduced edge data does not reflect the direction, so trying to reconstruct the path requires an trial and error approach where all nested arrays are tried in both directions until the correct combination is found.