Skip to content

Commit

Permalink
restrict usage of Traffic Calming presets on lines/areas:
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tyrasd committed Dec 5, 2022
1 parent b787f29 commit 033e5f4
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 26 deletions.
1 change: 1 addition & 0 deletions data/presets/highway/primary.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"oneway/bicycle",
"smoothness",
"toll",
"traffic_calming",
"trolley_wire",
"width"
],
Expand Down
1 change: 1 addition & 0 deletions data/presets/highway/residential.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"not/name",
"oneway/bicycle",
"smoothness",
"traffic_calming",
"trolley_wire",
"width"
],
Expand Down
1 change: 1 addition & 0 deletions data/presets/highway/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"maxwidth",
"oneway/bicycle",
"smoothness",
"traffic_calming",
"trolley_wire",
"width"
],
Expand Down
4 changes: 1 addition & 3 deletions data/presets/traffic_calming.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"direction_vertex"
],
"geometry": [
"vertex",
"line",
"area"
"vertex"
],
"tags": {
"traffic_calming": "*"
Expand Down
4 changes: 1 addition & 3 deletions data/presets/traffic_calming/_yes.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"{traffic_calming}"
],
"geometry": [
"vertex",
"line",
"area"
"vertex"
],
"tags": {
"traffic_calming": "yes"
Expand Down
3 changes: 1 addition & 2 deletions data/presets/traffic_calming/bump.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"direction_vertex"
],
"geometry": [
"vertex",
"line"
"vertex"
],
"terms": [
"hump",
Expand Down
4 changes: 1 addition & 3 deletions data/presets/traffic_calming/chicane.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"direction_vertex"
],
"geometry": [
"vertex",
"line",
"area"
"vertex"
],
"terms": [
"driveway link",
Expand Down
4 changes: 1 addition & 3 deletions data/presets/traffic_calming/choker.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"direction_vertex"
],
"geometry": [
"vertex",
"line",
"area"
"vertex"
],
"terms": [
"speed",
Expand Down
3 changes: 1 addition & 2 deletions data/presets/traffic_calming/cushion.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"direction_vertex"
],
"geometry": [
"vertex",
"line"
"vertex"
],
"terms": [
"bump",
Expand Down
3 changes: 1 addition & 2 deletions data/presets/traffic_calming/dip.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"direction_vertex"
],
"geometry": [
"vertex",
"line"
"vertex"
],
"terms": [
"speed",
Expand Down
3 changes: 1 addition & 2 deletions data/presets/traffic_calming/hump.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"direction_vertex"
],
"geometry": [
"vertex",
"line"
"vertex"
],
"terms": [
"bump",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/traffic_calming/island.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
],
"geometry": [
"vertex",
"line",
"area"
],
"terms": [
"circle",
"roundabout",
"slow"
"slow",
"traffic calming"
],
"tags": {
"traffic_calming": "island"
Expand Down
3 changes: 1 addition & 2 deletions data/presets/traffic_calming/mini_bumps.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"traffic_calming": "mini_bumps"
},
"geometry": [
"vertex",
"line"
"vertex"
],
"fields": [
"surface",
Expand Down
3 changes: 1 addition & 2 deletions data/presets/traffic_calming/rumble_strip.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"direction_vertex"
],
"geometry": [
"vertex",
"line"
"vertex"
],
"terms": [
"audible lines",
Expand Down

0 comments on commit 033e5f4

Please sign in to comment.