<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">If and how a barrier is blocking is
      handled in the specific FlagEncoder:<br>
      <br>
<a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java#L86">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java#L86</a><br>
      <br>
      Regards,<br>
      Peter<br>
      <br>
      On 09.07.2015 02:43, John Zhao wrote:<br>
    </div>
    <blockquote
cite="mid:CA+EBg9QkOvVCGbr6MVBgaYr-Hj3y01nFwoPBN2hYV-fFB9gvkA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I looked into OSMReader.processWay( )</div>
        <div>There is already a lot of comments. But it's still not
          clear to me. :p</div>
        <div><br>
        </div>
        <div>I understand GH will create a "virtual" node, with the same
          lat/lon.</div>
        <div>And then create a new edge between the 2 nodes.</div>
        <div>But how to block this edge?</div>
        <div>set the direction bit of the zero length edge both to
          false? where is the code?</div>
        <div>
          <pre style="color:rgb(0,0,0);font-family:Menlo;font-size:12pt"><span style="color:rgb(128,128,128);font-style:italic">// create zero length edge for barrier
</span>createdEdges.addAll(addBarrierEdge(newNodeId, nodeId, wayFlags, nodeFlags, wayOsmId));</pre>
          <div>
            <div class="gmail_signature"><b>Best Regards,</b>
              <div><b>ZhiQiang ZHAO</b></div>
            </div>
          </div>
        </div>
      </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>