[GraphHopper] Mode for road segment
Peter K
peathal at yahoo.de
Thu Feb 6 14:02:22 UTC 2014
Hey Yingxiang,
this is done from various OSM tags. Have a look into e.g.
CarFlagEncoder.acceptWay
Regards,
Peter.
> Hi Peter,
> Thanks a lot for your reply! To be more specific about my
> question: from the raw OSM data, which fields do you use to decide
> that if a segment permits walking/biking/driving or not?
> Best,
> Yingxiang
> ------------------------------------------------------------------------
> *From:* Peter K [peathal at yahoo.de]
> *Sent:* Wednesday, February 05, 2014 14:50
> *To:* GraphHopper Java routing engine
> *Subject:* Re: [GraphHopper] Mode for road segment
>
> 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
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140206/8b8162bd/attachment.html>
More information about the GraphHopper
mailing list