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: https://www.openstreetmap.org/user/happygo/diary/40564 Have a look at ExtractionWay, ExtractionTurn and the EdgeBasedGraphFactory. Cheers, Daniel J H On Sat, Jul 1, 2017 at 12:08 AM, Mateusz Loskot <[email protected]> wrote: > Hi, > > 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 > [email protected] > https://lists.openstreetmap.org/listinfo/osrm-talk >
_______________________________________________ OSRM-talk mailing list [email protected] https://lists.openstreetmap.org/listinfo/osrm-talk
