[OSRM-talk] Example of restricted access flags for way_function and turn_function
hofmann at mapbox.com
Sat Jul 1 08:41:15 UTC 2017
You are correct, the way function can set a "restricted" flag per way (and
direction), which you can then use in the turn function to put a high
penalty on turns from/to "restricted" ways.
The general idea is outlined here:
Have a look at ExtractionWay, ExtractionTurn and the EdgeBasedGraphFactory.
Daniel J H
On Sat, Jul 1, 2017 at 12:08 AM, Mateusz Loskot <mateusz at loskot.net> wrote:
> I'm trying to learn about use of the way_function result flags,
> forward_restricted and backward_restricted, and their correspondence
> with turn_function machinery, especially input source_restricted and
> target_restricted flags.
> Is there any data and profile example which shoes these in action?
> I guess, way_function is called first and any of the restriction flags set
> here for the link are passed to turn_function. Correct?
> Disclaimer: I haven't looked into OSRM implementation details yet,
> which, once grasped, I guess, might be enlightening.
> Best regards,
> Mateusz Loskot, http://mateusz.loskot.net
> OSRM-talk mailing list
> OSRM-talk at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OSRM-talk