[GraphHopper] Mode for road segment
Peter K
peathal at yahoo.de
Wed Feb 5 19:50:41 UTC 2014
Hey Yingxiang,
every edge stores flags where there is information for all vehicles
(speed and access). With e.g. carEncoder.isForward etc you can read out
this information. Within the algorithm it is managed from an EdgeFilter
which does all the necessary work. It is passed as argument to create an
edgeExplorer:
outEdgeExplorer = graph.createEdgeExplorer(new
DefaultEdgeFilter(flagEncoder, false, true));
Regards,
Peter.
> Hi there,
> I have one quick question: how do you decide for each road segment
> which transportation modes (like biking, walking) are permitted?
> Best,
> Yingxiang
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140205/1d966a89/attachment.html>
More information about the GraphHopper
mailing list