Flexible / Configurable Weighting Update

Have hacked together an interesting feature where we can avoiding certain turns like left_turns. Currently it still has some unexpected behaviour (for T-junctions) and is rather slow for longer routes, as the junction calculation stuff is done while the graph exploration, but it is really fun and interesting which routes are found:

https://discuss.graphhopper.com/uploads/default/original/2X/b/b71597ce09ec5a1d4e3d4935b0f1129102bd8942.gif

2 Likes