<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Stuart,<br>
<br>
the waytype information is just used for the routing instructions
such that a cycle rider gets a better idea what kind of way to look
at. As the bits are limited and a more exact infomration is
superflous for that purpose, I intentionally mangled all kind of
ways somehow marked for bicycle usage together into "CYCLEWAY".<br>
<br>
I also had some code which produced a statistic of the tour. It
calcualted the distances per each paved and unpaved waytype. This
code didn't make it into the master, although I think that it is an
important feature for bicycle routing. The problem was that the code
was too bicycle specific and required changes in all other flag
encoders as well - see issue #209.<br>
<br>
ratrun<br>
<br>
<div class="moz-cite-prefix">Am 02.06.2015 um 16:17 schrieb Stuart
Adam:<br>
</div>
<blockquote cite="mid:DUB119-W31E25F0C89FC01BFC0B90FBAB50@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hello all<br>
<br>
I am starting to look at bike routing and I note in the
handleBikeRelated method in BikeCommonFlagEncoder the following
logic applies.<br>
<br>
if (way.hasTag("bicycle", intendedValues))<br>
{<br>
if (isPusingSection &&
!way.hasTag("bicycle", "designated"))<br>
wayType = WayType.OTHER_SMALL_WAY;<br>
else<br>
wayType = WayType.CYCLEWAY;<br>
} else if ("cycleway".equals(highway))<br>
wayType = WayType.CYCLEWAY;<br>
else if (roadValues.contains(highway))<br>
wayType = WayType.ROAD;<br>
<br>
<br>
This does not seem correct to me as from my understanding this
is taking the fact that a way has been marked as having a right
of way for bicycles (but not a pushing section) then it is a
full blown cyclepath. In my mind at least cycleway implies
dedicated and marked (normally with differently coloured tarmac)
sections which is a much stronger indication for cycle use than
just a bicycle right of way.<br>
<br>
<br>
Am I correct and if so should this be changed or was there a
reason for this decision in Graphhopper.<br>
<br>
Sincerely<br>
Stuart Adam<br>
</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>