I’m not sure I’m in the right category with my question.
I learned a while ago from UPS and FedEx and perhaps other logistic companies which are avoiding left turns in routing their vehicles. I’m intrigued by that idea and looking for a place to try this. Neither Google Maps nor opensource routing software offers that option.
I noticed that Graphhopper is highly configurable and wondered whether I could customize a routing query in that way.
Would that be possible?
I installed the branch “turn_costs_calc” from github.
I also fetched ontario-latest.osm.pbf for my local area.
I configured the config.yml as described here: Change priority based on turn preference - #4 by karussell.
I put in the custom model configuration as described.
The result is rather unexpected as there are a lot of left turns in the routes.
Note, that yaml format is a bit picky when using the JSON directly and the closing bracket of the custom_model section must have the same indentation like the the start of custom_model (or convert the JSON to yaml format)