If and how a barrier is blocking is handled in the specific FlagEncoder:

https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java#L86

Regards,
Peter

On 09.07.2015 02:43, John Zhao wrote:
> 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*
>
>
> _______________________________________________
> GraphHopper mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/graphhopper

_______________________________________________
GraphHopper mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/graphhopper

Reply via email to