<div dir="ltr"><div><div><div><div><div>A couple of things I'm seeing here:<br></div><div><br></div><br></div><div>The ferry does not have a duration tag so you will get default speeds; you could add duration data to <a href="http://www.openstreetmap.org/way/81817423#map=17/46.69224/7.90466&layers=D">http://www.openstreetmap.org/way/81817423#map=17/46.69224/7.90466&layers=D</a><br></div><br></div><div>The default profiles set speed for ferries but they do not (yet) modify weights for ferries; you can set realistic speeds and independently change routing weights now; see <a href="https://www.openstreetmap.org/user/happygo/diary/40564">https://www.openstreetmap.org/user/happygo/diary/40564</a><br></div><br></div><div>Related: we optimize on weight and not on speed; even though the road could be faster it can have a high weight penalty on it; check weight responses in <a href="http://project-osrm.org/docs/v5.10.0/api/#result-objects">http://project-osrm.org/docs/v5.10.0/api/#result-objects</a><br></div><div><br></div><div><br></div>Hope that helps,<br></div>Daniel J H<br><div><div><div><br><div><div><div><div><br></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 1, 2017 at 12:35 PM, michael spreng <span dir="ltr"><<a href="mailto:mailinglists@m.spreng.ch" target="_blank">mailinglists@m.spreng.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
We have a problem on <a href="http://routing.osm.ch" rel="noreferrer" target="_blank">routing.osm.ch</a>, that a ferry is used too often,<br>
even though I set the speed of the ferry very low, such that it should<br>
only be used if there is an exceptionally long detour without it. Here<br>
<br>
<a href="http://routing.osm.ch/?z=14¢er=46.696227%2C7.941270&loc=46.709618%2C7.962899&loc=46.688088%2C7.898548&hl=en&alt=0&srv=2" rel="noreferrer" target="_blank">http://routing.osm.ch/?z=14&<wbr>center=46.696227%2C7.941270&<wbr>loc=46.709618%2C7.962899&loc=<wbr>46.688088%2C7.898548&hl=en&<wbr>alt=0&srv=2</a><br>
<br>
I would assume that it takes the road along the shore, because it has a<br>
four times faster speed. But the routing uses the ferry never the less.<br>
See <a href="https://routing.osm.ch/debug/bike-touring.html#14/46.6975/7.9469" rel="noreferrer" target="_blank">https://routing.osm.ch/debug/<wbr>bike-touring.html#14/46.6975/<wbr>7.9469</a> for<br>
the speeds.<br>
<br>
Another problem I have is with the foot profile, where the ferry does<br>
not show up in debug:<br>
<a href="https://routing.osm.ch/debug/foot.html#14.42/46.7076/7.9472" rel="noreferrer" target="_blank">https://routing.osm.ch/debug/<wbr>foot.html#14.42/46.7076/7.9472</a><br>
<br>
But it is obviously in the routing graph, because again it gets<br>
preferred to the way along the shore:<br>
<br>
<a href="http://routing.osm.ch/?z=14¢er=46.697464%2C7.946935&loc=46.709618%2C7.962899&loc=46.688088%2C7.898548&hl=en&alt=0&srv=3" rel="noreferrer" target="_blank">http://routing.osm.ch/?z=14&<wbr>center=46.697464%2C7.946935&<wbr>loc=46.709618%2C7.962899&loc=<wbr>46.688088%2C7.898548&hl=en&<wbr>alt=0&srv=3</a><br>
<br>
The profiles can be seen here:<br>
<a href="https://github.com/sosm/cbf-routing-profiles" rel="noreferrer" target="_blank">https://github.com/sosm/cbf-<wbr>routing-profiles</a><br>
<br>
Does someone have some insight on what I'm doing wrong?<br>
<br>
Michael<br>
<br>
______________________________<wbr>_________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/osrm-talk</a><br>
</blockquote></div><br></div>