[GraphHopper] Mode for road segment

Yingxiang Yang yxyang at MIT.EDU
Wed Feb 5 23:04:59 UTC 2014


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



_______________________________________________
GraphHopper mailing list
GraphHopper at openstreetmap.org<mailto: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/bc28b1ee/attachment.html>


More information about the GraphHopper mailing list