<div dir="ltr">Hey François,<div><br></div><div>  The only way to achieve this with OSRM would be to apply large penalties to barriers/tolls.  You'll have to pick a penalty value that's *just right* - enough that 0 or 1 will be acceptable, but 2 would force the engine to find another route.</div><div><br></div><div>  Because OSRM doesn't have dynamic costing options, you can't do something like "penalize the first toll with 0, penalize the second toll with 1000" - for that, you'd need to be able to run a more customizable routing algorithm.</div><div><br></div><div>  We have muttered about implementing A* on the edge-based-graph which would make this possible, but so far, nobody has put the time in to implement it.</div><div><br></div><div>daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 28, 2018 at 8:31 AM, François Lacombe <span dir="ltr"><<a href="mailto:fl.infosreseaux@gmail.com" target="_blank">fl.infosreseaux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi all,<br><br></div>Another question I have while I continue to build a routing system dedicated to industrial networks in parallel of roads we get from osm.<br><br></div>I'd be interested to get osrm result with a limited amount of particular ways or nodes in the route.<br></div>Something like "Get me from A to B with only 0 or 1 toll barrier on the route", is this possible ?<br><br></div>I know the exclude URL parameter to exclude some pre-processed classes of object, but don't know if we can actually limit them.<br><br></div>Thanks in advance for any hint, all the best<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>François<br></div></font></span></div></div>
<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>
<br></blockquote></div><br></div>