[GraphHopper] How graphhopper handle the barrier=gate?

John Zhao johnthu at gmail.com
Thu Jul 9 00:43:19 UTC 2015


Hi,

I looked into OSMReader.processWay( )
There is already a lot of comments. But it's still not clear to me. :p

I understand GH will create a "virtual" node, with the same lat/lon.
And then create a new edge between the 2 nodes.
But how to block this edge?
set the direction bit of the zero length edge both to false? where is the
code?

// create zero length edge for barrier
createdEdges.addAll(addBarrierEdge(newNodeId, nodeId, wayFlags,
nodeFlags, wayOsmId));

*Best Regards,*
*ZhiQiang ZHAO*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150708/43a6c5a1/attachment.html>


More information about the GraphHopper mailing list