Skip to content

Commit 033e5f4

Browse files
committed
restrict usage of Traffic Calming presets on lines/areas:
* only traffic_calming=island is allowed to be mapped as an area * for traffic calming on lines: only allow it in combination with certain road presets. See https://wiki.openstreetmap.org/w/index.php?title=Key:traffic_calming&oldid=2438763#How_to_map
1 parent b787f29 commit 033e5f4

14 files changed

+15
-26
lines changed

data/presets/highway/primary.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"oneway/bicycle",
3030
"smoothness",
3131
"toll",
32+
"traffic_calming",
3233
"trolley_wire",
3334
"width"
3435
],

data/presets/highway/residential.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"not/name",
2525
"oneway/bicycle",
2626
"smoothness",
27+
"traffic_calming",
2728
"trolley_wire",
2829
"width"
2930
],

data/presets/highway/service.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"maxwidth",
2222
"oneway/bicycle",
2323
"smoothness",
24+
"traffic_calming",
2425
"trolley_wire",
2526
"width"
2627
],

data/presets/traffic_calming.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"direction_vertex"
77
],
88
"geometry": [
9-
"vertex",
10-
"line",
11-
"area"
9+
"vertex"
1210
],
1311
"tags": {
1412
"traffic_calming": "*"

data/presets/traffic_calming/_yes.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"{traffic_calming}"
66
],
77
"geometry": [
8-
"vertex",
9-
"line",
10-
"area"
8+
"vertex"
119
],
1210
"tags": {
1311
"traffic_calming": "yes"

data/presets/traffic_calming/bump.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"direction_vertex"
66
],
77
"geometry": [
8-
"vertex",
9-
"line"
8+
"vertex"
109
],
1110
"terms": [
1211
"hump",

data/presets/traffic_calming/chicane.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"direction_vertex"
66
],
77
"geometry": [
8-
"vertex",
9-
"line",
10-
"area"
8+
"vertex"
119
],
1210
"terms": [
1311
"driveway link",

data/presets/traffic_calming/choker.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
"direction_vertex"
66
],
77
"geometry": [
8-
"vertex",
9-
"line",
10-
"area"
8+
"vertex"
119
],
1210
"terms": [
1311
"speed",

data/presets/traffic_calming/cushion.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"direction_vertex"
66
],
77
"geometry": [
8-
"vertex",
9-
"line"
8+
"vertex"
109
],
1110
"terms": [
1211
"bump",

data/presets/traffic_calming/dip.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"direction_vertex"
66
],
77
"geometry": [
8-
"vertex",
9-
"line"
8+
"vertex"
109
],
1110
"terms": [
1211
"speed",

data/presets/traffic_calming/hump.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"direction_vertex"
66
],
77
"geometry": [
8-
"vertex",
9-
"line"
8+
"vertex"
109
],
1110
"terms": [
1211
"bump",

data/presets/traffic_calming/island.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
],
66
"geometry": [
77
"vertex",
8-
"line",
98
"area"
109
],
1110
"terms": [
1211
"circle",
1312
"roundabout",
14-
"slow"
13+
"slow",
14+
"traffic calming"
1515
],
1616
"tags": {
1717
"traffic_calming": "island"

data/presets/traffic_calming/mini_bumps.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"traffic_calming": "mini_bumps"
55
},
66
"geometry": [
7-
"vertex",
8-
"line"
7+
"vertex"
98
],
109
"fields": [
1110
"surface",

data/presets/traffic_calming/rumble_strip.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"direction_vertex"
55
],
66
"geometry": [
7-
"vertex",
8-
"line"
7+
"vertex"
98
],
109
"terms": [
1110
"audible lines",

0 commit comments

Comments
 (0)