<div dir="ltr">Hi Peter,<br>I am trying to get the turn restrictions working. But i can not get it to route accordingly. Actually I can not find out how to enable it.<br>Also I saw that TurnCostStorage.getTurnCost() is never referenced, except in some in commented code in GraphhopperStorage... maybe there is no Weighting class implemented that takes into account the turn restrictions yet? <br>
<br>Here is my test, the turn restriction being tested should prevent us from going from Blanicka into Urugayska.<br><br>    <br>    String osmFile= "../../maps/OLD/prague-latest.osm.pbf";<br>    <br>    <br>    GraphHopper graphHopper=new GraphHopper().setInMemory(true)<br>
                .setGraphHopperLocation("/tmp/ghLoc")<br>                .setOSMFile(osmFile)<br>                .disableCHShortcuts()<br>                .setEncodingManager(new EncodingManager("car",4,20));<br>
    <br>    graphHopper.importOrLoad();<br>    <br>    <br>    GHRequest ghRequest=new GHRequest(new GHPoint(50.07483120416, 14.4390392303),new GHPoint(50.07333, 14.43869));<br><br>    GHResponse ghResponse=graphHopper.route(ghRequest);<br>
    System.err.println(ghResponse.getPoints());<br><br><br><br>route returned :<br><a href="http://imgur.com/QWLgoOL">http://imgur.com/QWLgoOL</a><br><br><br>Route expected goes around Namesti Miru square:<br><a href="http://imgur.com/MftaocZ">http://imgur.com/MftaocZ</a><br>
<br>Thanks,<br>Bruno<br></div>