<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Armin,<br>
<br>
that is possible and you would need to decrease the weight of a
certain edge if this edge is part of a bike route relation. For
that you'll need to tell the flag encoder to store this info e.g.
in the flags and fetch it in a custom Weighting. See eg. how to
create a <a
href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/weighting.md">custom
weighting</a> and e.g. encoder.setSpeed on how to store
information in the flags.<br>
<br>
Regards,<br>
Peter<br>
<br>
On 25.08.2015 15:46, XCTrails wrote:<br>
</div>
<blockquote
cite="mid:CAMt9zrsve-mwPTy1k8NkATKz1HTRLAo6_+P+g7OyHciXBrFDcA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
what is the default weighting approach for bicycle
routing? A user has recently pointed out that in a
certain case he gets routed via main roads while there
are available bike trails. Case in point is from Bad
Aibling to Bad Feilnbach - GH's bicycle routing is
basically the faster/shorter connection, while <a
moz-do-not-send="true"
href="http://cycle.travel/map">http://cycle.travel/map</a>
for instance finds the "proper" bicycle connection
(i.e. the one I'd actually prefer)<br>
<br>
</div>
What is the best way to influence this in GH? Implement
a custom weighting? <a moz-do-not-send="true"
href="https://github.com/graphhopper/graphhopper/issues/190">https://github.com/graphhopper/graphhopper/issues/190</a>
seems to indicate that this should somehow be possible,
but I'm not reading much out of that ticket which gives
me further clues...<br>
<br>
</div>
(I do understand that there is a threshold issue, i.e. how
far is one willing to detour in order to avoid highways
for instance...)<br>
<br>
</div>
Thanks for any further hints or pointers...<br>
<br>
</div>
cheers,<br>
</div>
Armin<br>
<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>