<div dir="ltr">Hello all,<div><br></div><div>I was using GraphHopper for routing when I noticed a route involving an illegal turn (the junction only allows traffic to drive straight through, but the route instructed the driver to take a right turn)</div>
<div><br></div><div>The OpenStreetMap file has the junction tagged with:</div><div>restriction ("only_straight_on")<br></div><div><br></div><div>I start up graph hopper as follows:</div><div>==========================</div>
<div><div>        hopper = new GraphHopper().forServer();</div><div><br></div><div>        hopper.setEnableTurnRestrictions(true);</div><div><br></div><div>        hopper.setInMemory(true);</div><div>        hopper.setOSMFile(osmFile);</div>
<div>        // where to store graphhopper files?</div><div>        hopper.setGraphHopperLocation(graphFolder);</div><div>        hopper.setEncodingManager(new EncodingManager("car"));</div><div><br></div><div>        hopper.disableCHShortcuts();</div>
<div><br></div><div>        // now this can take minutes if it imports or a few seconds for loading</div><div>        // of course this is dependent on the area you import</div><div>        hopper.importOrLoad();</div></div>
<div>===========================</div><div><br></div><div>So I'm pretty sure that GraphHopper should be considering turn restrictions...</div><div><br></div><div>Is this a bug?</div><div><br></div><div>I only need routing using a simple Dijkstra algo without CH...</div>
<div><br></div><div>Many thanks,</div><div>Tim</div></div>