Proposal:Lanes as Relations/Examples
Jump to navigation
Jump to search
Implicit directions
Ways:
Relations:
#1, type=lane + lane=vehicle + lane:through=yes + lane:turnleft=yes,
#1 as 'highway'
#2, type=lane + lane=vehicle + lane:through=yes,
#1 as 'highway'
#3, type=lane + lane=vehicle + lane:through=yes,
#1 as 'highway'
Lanes with multiple highway members
Ways:
#1-5 (left to right), tagged highway=* + oneway=yes
Relations:
#1: type=lane + lane=vehicle + lane:turnleft=yes,
#3 as 'highway'
#2: type=lane + lane=vehicle + lane:through=yes,
#1,2,3,4,5 as 'highway'
#3: type=lane + lane=vehicle + lane:through=yes,
#1,2,3,4,5 as 'highway'
#4: type=lane + lane=vehicle + lane:through=yes,
#1,2 as 'highway'
#5: type=lane + lane=vehicle + lane:merge=yes,
#3,4 as 'highway'
Open question: how to express that #4 is the "same" lane as #5? Add as a member to the relation?
Lanes with multiple highway members
Ways:
#1 (bottom) and #2 (top), drawn from bottom to top, tagged highway=*
Relations for top way:
#1: type=lane + lane=vehicle + lane:direction=forward + lane:through=yes + lane:turnleft=yes,
#2 as 'highway'
#2: type=lane + lane=vehicle + lane:direction=forward + lane:through=yes,
#2 as 'highway'
#3: type=lane + lane=vehicle + lane:direction=forward + lane:through=yes + lane:turnright=yes,
#2 as 'highway'
#4: type=lane + lane=vehicle + lane:direction=forward + lane:turnright=yes,
#2 as 'highway'
Relations for bottom way:
#5: type=lane + lane=psv + lane:direction=forward,
#1 as 'highway'
#6: type=lane + lane=psv + lane:direction=backward,
#1 as 'highway',
#7,8 as 'right_neighbor'
Relations for both ways:
#7: type=lane + lane=vehicle + lane:direction=backward + lane:through=yes,
#2,1 as 'highway'
#8: type=lane + lane=vehicle + lane:direction=backward + lane:through=yes,
#2,1 as 'highway'
#9: type=lane + lane=sidewalk,
#2,1 as 'highway',
#1 as 'right_neighbour'
#10: type=lane + lane=sidewalk,
#2,1 as 'highway',
#8 as 'left_neighbour'