<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
This is because the way <a class="moz-txt-link-freetext" href="https://www.openstreetmap.org/way/329593444">https://www.openstreetmap.org/way/329593444</a>
is tagged as footway with bicycles=yes. Here we assume 6km/h. The
preference is not changed, as it is not part of a cycle relation.
Such ways could be crowded with pedestrians and dogs, therefore I
believe the 6km/h are ok considering the values for other way types.
The cyclist is just allowed here, but mainly the way is made for
pedestrians. Graphhopper currently does not take the set width tag,
which is set to 3.0 meters in your example, into account. The
choosen scondary has a speed limit of 50km/h (which is not too fast
for my feeling) and therefore we assume 18km/h without changing the
preference down. As it is not much longer, graphhopper chooses it.
The secondary is not tagged with lanes, but even if there would be
multiple lanes there, graphhopper currently does not evaluate such
information.<br>
<br>
Please note that graphhopper would set the preference of the
secondary down if the maxspeed on the secondary was greater than 80.
This probobly should be better changed to "greater or equal" 80km or
even 70 km/h.<br>
@Peter: Can you change the line
<a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java#L495">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java#L495</a>
?<br>
<br>
ratrun<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 14.05.2015 um 02:37 schrieb Morten
Lange:<br>
</div>
<blockquote
cite="mid:1723794398.1689510.1431563875710.JavaMail.yahoo@mail.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:verdana, helvetica, sans-serif;font-size:13px">
<div id="yui_3_16_0_1_1431437237458_112062">Hello <br>
</div>
<div id="yui_3_16_0_1_1431437237458_112116"><br>
</div>
<div dir="ltr" id="yui_3_16_0_1_1431437237458_112204">I have a
an example illustrating a problem I have often encountered. <br>
</div>
<div id="yui_3_16_0_1_1431437237458_112206">Can anyone explain
why GarpHopper chooses the road ( multilane fast traffic )
rather than a shared path when routing for cycling ? <br>
</div>
<div id="yui_3_16_0_1_1431437237458_112203">GH does not refuse
to route bicycles along the path, but seems to judge" the road
as faster ? <br>
</div>
<div id="yui_3_16_0_1_1431437237458_112088"><br>
</div>
<div id="yui_3_16_0_1_1431437237458_112202"><br>
<span></span></div>
<div dir="ltr" id="yui_3_16_0_1_1431437237458_112081"><a
moz-do-not-send="true"
id="yui_3_16_0_1_1431437237458_112083"
href="https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=64.13323%2C-21.86841%3B64.13484%2C-21.87089#map=17/64.13394/-21.86961">OpenStreetMap</a><br>
<span></span></div>
<div style="width:450px; font-family: 'Georgia', 'Times', 'Times
New Roman', 'serif';margin-top:5px; margin-bottom: 5px;
background-color: #ffffff;" id="enhancrCard_0"
class="link-enhancr-attachment link-enhancr-element"
contenteditable="false">
<table id="yui_3_16_0_1_1431437237458_112227"
class="link-enhancr-element" style="width:450px;
height:170px; position: relative; display: block;"
border="0" cellpadding="0" cellspacing="0">
<tbody id="yui_3_16_0_1_1431437237458_112226">
<tr class="link-enhancr-element">
<td class="link-enhancr-element" colspan="8"
style="height: 1px; background-color: #e5e5e5;
font-size: 1px; border-collapse: collapse;">
<div class="link-enhancr-element" style="height: 1px;
background-color: #e5e5e5; font-size: 1px;
line-height:0px;"> </div>
</td>
</tr>
<tr id="yui_3_16_0_1_1431437237458_112225"
class="link-enhancr-element">
<td rowspan="5" class="link-enhancr-element"
style="width: 1px; background-color: #e5e5e5;
font-size: 1pt; border-collapse: collapse;">
<div class="link-enhancr-element" style="width: 1px;
background-color: #e5e5e5; font-size: 1pt;"> </div>
</td>
<td id="yui_3_16_0_1_1431437237458_112224"
class="link-enhancr-element" rowspan="5"
style="vertical-align: middle; width: 168px; height:
168px; background-color: #000000;border-collapse:
collapse;">
<div id="yui_3_16_0_1_1431437237458_112223"
class="link-enhancr-element" style="width: 168px;"
align="center"><a moz-do-not-send="true"
id="yui_3_16_0_1_1431437237458_112222"
href="https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=64.13323%2C-21.86841%3B64.13484%2C-21.87089#map=17/64.13394/-21.86961"
class="link-enhancr-card-urlWrapper
link-enhancr-element" style="text-decoration: none
!important; color: #000000 !important;"><img
moz-do-not-send="true"
id="yui_3_16_0_1_1431437237458_112221"
data-id="f2a02cf8-9008-2c3f-94ab-86b86305c999"
alt="image"
src="https://www.openstreetmap.org/assets/osm_logo-4c0865834d91c00b67887ab1f4f7f666.png"
class="link-enhancr-thumbnail-image
link-enhancr-element" style="display: block;
margin: auto;" height="168" width="168"></a></div>
</td>
<td rowspan="5" class="link-enhancr-element"
style="width: 1px; background-color: #e5e5e5;
font-size: 0pt; border-collapse: collapse;">
<div class="link-enhancr-element" style="width: 1px;
background-color: #e5e5e5; font-size: 1pt;"> </div>
</td>
<td rowspan="5" class="link-enhancr-element"
style="width: 14px; background-color: #ffffff;
font-size: 0pt; border-collapse: collapse;">
<div class="link-enhancr-element" style="width: 14px;
background-color: #ffffff; font-size: 14pt;"> </div>
</td>
<td colspan="2" class="link-enhancr-element"
style="height: 6px; background-color: #ffffff;
font-size: 0pt; border-collapse: collapse;">
<div class="link-enhancr-element" style="height: 6px;
background-color: #ffffff; font-size: 6pt;"> </div>
</td>
<td rowspan="5" class="link-enhancr-element"
style="width: 20px; background-color: #ffffff;
font-size: 0pt; border-collapse: collapse;">
<div class="link-enhancr-element" style="width: 20px;
background-color: #ffffff; font-size: 20pt;"> </div>
</td>
<td class="link-enhancr-element" rowspan="5"
style="width: 1px; background-color: #e5e5e5;
font-size: 1pt; border-collapse: collapse;" width="1">
<div class="link-enhancr-element" style="width: 1px;
background-color: #e5e5e5; font-size: 1pt;"> </div>
</td>
</tr>
<tr>
<td class="link-enhancr-element" colspan="2"
style="width: 100%; vertical-align: middle;
font-family: 'Georgia', 'Times', 'Times New Roman',
'serif';">
<div class="link-enhancr-text-part
link-enhancr-element" style="line-height:16.5px;
background-color: #ffffff; height: 135px; width:
245px;">
<div class="link-enhancr-element" style="word-wrap:
break-word; word-break: break-all;"><span
class="link-enhancr-element icon icon-shrink
link-enhancr-toggle"></span><span
class="link-enhancr-element icon icon-close
link-enhancr-delete"></span><a
moz-do-not-send="true"
href="https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=64.13323%2C-21.86841%3B64.13484%2C-21.87089#map=17/64.13394/-21.86961"
class="link-enhancr-card-urlWrapper
link-enhancr-element" style="text-decoration:
none !important; color: #000000 !important;
line-height: 100%; font-size: 18px; display:
block;"><span class="link-enhancr-element
link-enhancr-card-title" style="margin: 0;
font-weight: normal;margin-bottom: 3px;
font-size: 18px; line-height: 21px;
max-height: 43px; color: #000000; overflow:
hidden !important; display: inline-block;">OpenStreetMap</span></a>
<div style="font-size: 13px; line-height: 20px;
color: #999999; max-height: 81px; font-family:
'Georgia', 'Times', 'Times New Roman',
'serif';overflow: hidden;"
class="link-enhancr-card-description
link-enhancr-element">OpenStreetMap is the free
wiki world map.</div>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="2" class="link-enhancr-element"
style="height: 4px; background-color: #ffffff;
font-size: 0pt; border-collapse: collapse;"><br>
</td>
</tr>
<tr>
<td class="link-enhancr-element" style="vertical-align:
middle; font-family: 'Arial', 'Helvetica Neue',
'Helvetica', 'sans-serif';">
<div class="link-enhancr-element" style="font-size:
0pt;"><a moz-do-not-send="true"
href="https://www.openstreetmap.org/directions?engine=graphhopper_bicycle&route=64.13323%2C-21.86841%3B64.13484%2C-21.87089#map=17/64.13394/-21.86961"
class="link-enhancr-card-url link-enhancr-element"
style="color: black; text-decoration: none
!important;cursor:pointer !important;"
target="_blank"><span
id="yui_3_16_0_1_1431437237458_112099"
class="link-enhancr-element
link-enhancr-view-on" style="display:
inline-block; line-height: 11px; max-width:
145px; min-width: 85px; overflow: hidden;
max-height: 13px; word-break: break-all;"><span
class="link-enhancr-element
link-enhancr-mobile-no-resize"
style="vertical-align:middle; font-size: 9px;
line-height: 11px; color: #999999;
-moz-text-size-adjust: none;
-ms-text-size-adjust: none;
-webkit-text-size-adjust:none;
text-size-adjust:none;">View on <span
style="font-weight: bold"
class="link-enhancr-view-on-domain">www.openstreetmap.org</span></span></span></a></div>
</td>
<td class="link-enhancr-element" style="vertical-align:
middle; width: 100px; font-family: 'Arial', 'Helvetica
Neue', 'Helvetica', 'sans-serif';">
<div class="link-enhancr-element
link-enhancr-preview-wrapper" style="max-width:
100px; min-width: 80px; overflow: hidden;
text-align: right; line-height: 11px; max-height:
13px; font-size: 0pt;"><span
class="link-enhancr-element
link-enhancr-preview-by
link-enhancr-mobile-no-resize"
style="vertical-align:middle; font-size: 9px;
line-height: 11px; color: #999999;
-moz-text-size-adjust: none; -ms-text-size-adjust:
none; -webkit-text-size-adjust:none;
text-size-adjust:none;">Preview by Yahoo</span></div>
</td>
</tr>
<tr>
<td colspan="2" class="link-enhancr-element"
style="height: 9px; background-color: #ffffff;
font-size: 0pt; border-collapse: collapse;"><br>
</td>
</tr>
<tr class="link-enhancr-element">
<td class="link-enhancr-element" colspan="8"
style="height: 1px; background-color: #e5e5e5;
font-size: 1px; border-collapse: collapse;">
<div class="link-enhancr-element" style="height: 1px;
background-color: #e5e5e5; font-size: 1px;
line-height:0px"> </div>
</td>
</tr>
</tbody>
</table>
</div>
<div><span></span></div>
<div id="yui_3_16_0_1_1431437237458_112063"> </div>
<div id="yui_3_16_0_1_1431437237458_112229">
<div id="yui_3_16_0_1_1431437237458_112228">--
<br>
Regards / Kveðja / Hilsen
<br>
Morten Lange, Reykjavík</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</body>
</html>