<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">No, can't find the workaround but it
      was related to a special weighting class I think with an edge
      check (read further ;)).<br>
      <br>
      You'll have to do some modifications to the QueryGraph where one
      normally inserts a virtual node for the query point (the
      snapped-to-road-point) and you add some virtual edges. Now using
      the bearing you can avoid inserting some of the edges OR increase
      the weight for them OR create a special weighting class which
      increases the weighting if you encounter those virtual edges.<br>
      <br>
      E.g. in TurnWeighting we check for a U-turn like this:<br>
      if (turnCosts == 0 && edgeId == prevOrNextEdgeId)<br>
                  return weight + defaultUTurnCost;<br>
      <br>
      you'll have to detect now this special U-turn and do a similar
      thing I think<br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
      On 03.11.2014 21:17, Emux wrote:<br>
    </div>
    <blockquote cite="mid:5457E2D8.2080808@gmail.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">In the ticket you wrote about a quick
        workaround that exists in the mailing list.<br>
        Have you found it? I search but I cannot find it.<br>
        <br>
        I suspect also that this feature is not solved just by using
        graphs with turn restrictions.<br>
        <br>
      </div>
      <div class="moz-signature">-- <br>
        <font color="#000000">Emux</font><br>
        <a moz-do-not-send="true"
          href="http://wiki.openstreetmap.org/wiki/Cruiser">Cruiser</a>
        - <a moz-do-not-send="true"
href="http://wiki.openstreetmap.org/wiki/Atlas_%28navigation_application%29">Atlas</a></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>