Hey François,

  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.

  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.

  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.

daniel

On Wed, Mar 28, 2018 at 8:31 AM, François Lacombe <[email protected]
> wrote:

> Hi all,
>
> Another question I have while I continue to build a routing system
> dedicated to industrial networks in parallel of roads we get from osm.
>
> I'd be interested to get osrm result with a limited amount of particular
> ways or nodes in the route.
> Something like "Get me from A to B with only 0 or 1 toll barrier on the
> route", is this possible ?
>
> I know the exclude URL parameter to exclude some pre-processed classes of
> object, but don't know if we can actually limit them.
>
> Thanks in advance for any hint, all the best
>
> François
>
> _______________________________________________
> OSRM-talk mailing list
> [email protected]
> https://lists.openstreetmap.org/listinfo/osrm-talk
>
>
_______________________________________________
OSRM-talk mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/osrm-talk

Reply via email to