<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Times New Roman;color: #000000;font-size: 12pt;">
Hi Peter,<br>
<div> 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?<br>
<div style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment"><font face="'Times New Roman'" size="3">
<div class="PlainText">Best,<br>
Yingxiang</div>
</font></div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF586201" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Peter K [peathal@yahoo.de]<br>
<b>Sent:</b> Wednesday, February 05, 2014 14:50<br>
<b>To:</b> GraphHopper Java routing engine<br>
<b>Subject:</b> Re: [GraphHopper] Mode for road segment<br>
</font><br>
</div>
<div></div>
<div>
<div class="moz-cite-prefix">Hey Yingxiang,<br>
<br>
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:<br>
outEdgeExplorer = graph.createEdgeExplorer(new DefaultEdgeFilter(flagEncoder, false, true));<br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote type="cite"><style type="text/css" id="owaParaStyle"></style>
<div style="direction:ltr; font-family:Times New Roman; color:#000000; font-size:12pt">
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<div id="divRpF779164" style="direction:ltr"><span style="font-size:12pt">Hi there,</span></div>
<div>
<div style="direction:ltr; font-family:Times New Roman; color:#000000; font-size:12pt">
<div> I have one quick question: how do you decide for each road segment which transportation modes (like biking, walking) are permitted?<br>
<div style="font-family:Tahoma; font-size:13px">
<div class="BodyFragment"><font face="'Times New
Roman'" size="3">
<div class="PlainText">Best,<br>
Yingxiang</div>
</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader" target="_blank"></fieldset> <br>
<pre>_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>