Module turns

Source

FunctionsΒ§

curvey_turn πŸ”’
ensure_unique πŸ”’
make_all_turns
Generate all driving and walking turns at an intersection, accounting for OSM turn restrictions.
make_vehicle_turns πŸ”’
remove_merging_turns πŸ”’
turn_type_from_lane_geom πŸ”’
verify_vehicle_connectivity
Ideally, we want every incoming lane to lead to at least one lane of the same type, and every outgoing lane to be reachable by at least one lane of the same type. But if it’s a bus or bike lane, settle for being connected to anything – even just a driving lane. There’s naturally places where these dedicated lanes start and end.