Skip to content

Commit

Permalink
Merge pull request #590 from openstreetmap/crossing_markings
Browse files Browse the repository at this point in the history
refactor crossing presets to use approved "crossing:markings" tag: add field for the new tag, change "Marked Crosswalk" presets to use "crossing=uncontrolled" tag and add preset for "Cycle Crossing With Traffic Signals"
  • Loading branch information
tyrasd authored Nov 9, 2022
2 parents 89aaad1 + a7037f9 commit 6a01300
Show file tree
Hide file tree
Showing 23 changed files with 278 additions and 50 deletions.
14 changes: 13 additions & 1 deletion data/fields/crossing.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"key": "crossing",
"type": "combo",
"label": "Type"
"label": "Type",
"options": [
"traffic_signals",
"uncontrolled",
"unmarked"
],
"strings": {
"options": {
"traffic_signals": "Crossing With Traffic Signals",
"uncontrolled": "Only Road Markings",
"unmarked": "No Road Markings or Traffic Signals"
}
}
}
24 changes: 24 additions & 0 deletions data/fields/crossing/markings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "crossing:markings",
"type": "combo",
"label": "Crossing Markings",
"strings": {
"options": {
"zebra": "Longitudinal Bars",
"lines": "Transverse Lines",
"no": "Unmarked",
"ladder": "Ladder With Longitudinal Bars",
"dots": "Dotted Transverse Lines",
"dashes": "Dashed Transverse Lines",
"yes": "Marked Somehow",
"surface": "Surface Treatment Only",
"ladder:skewed": "Ladder With Diagonal Bars",
"pictograms": "Painted Pictograms",
"lines:paired": "Double Transverse Lines",
"zebra:double": "Triple-Four",
"zebra:paired": "Paired Longitudinal Bars",
"zebra:bicolour": "Longitudinal Bars With Alternating Colors",
"ladder:paired": "Ladder With Paired Longitudinal Bars"
}
}
}
2 changes: 1 addition & 1 deletion data/preset_categories/path.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"members": [
"highway/path",
"highway/footway",
"highway/footway/marked",
"highway/footway/crossing/uncontrolled",
"highway/footway/sidewalk",
"highway/steps",
"highway/cycleway",
Expand Down
3 changes: 2 additions & 1 deletion data/preset_defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"point"
],
"vertex": [
"highway/crossing/marked",
"highway/crossing/traffic_signals",
"highway/crossing/uncontrolled",
"highway/crossing/unmarked",
"railway/level_crossing",
"highway/traffic_signals",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing_raised"
],
"moreFields": [
Expand All @@ -25,5 +26,6 @@
"marked crossing",
"crosswalk"
],
"name": "Marked Crosswalk"
"name": "Marked Crosswalk",
"searchable": false
}
1 change: 1 addition & 0 deletions data/presets/highway/crossing/_zebra.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing_raised"
],
"geometry": [
Expand Down
1 change: 1 addition & 0 deletions data/presets/highway/crossing/traffic_signals.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing_raised",
"button_operated",
"traffic_signals/sound",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"crossing",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing_raised"
],
"geometry": [
Expand All @@ -17,6 +18,5 @@
"key": "crossing",
"value": "uncontrolled"
},
"name": "Marked Crosswalk",
"searchable": false
"name": "Marked Crosswalk"
}
5 changes: 3 additions & 2 deletions data/presets/highway/cycleway/_crossing.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"icon": "temaki-cyclist_crosswalk",
"fields": [
"crossing",
"access",
"surface",
"tactile_paving",
"crossing/island"
"crossing/island",
"crossing/markings",
"access"
],
"geometry": [
"line"
Expand Down
27 changes: 27 additions & 0 deletions data/presets/highway/cycleway/crossing/_marked.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"icon": "temaki-cyclist_crosswalk",
"fields": [
"crossing",
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing_raised",
"access"
],
"geometry": [
"line"
],
"tags": {
"highway": "cycleway",
"cycleway": "crossing",
"crossing": "marked"
},
"reference": {
"key": "crossing",
"value": "marked"
},
"matchScore": 0.95,
"name": "Marked Cycle Crossing",
"searchable": false
}
6 changes: 4 additions & 2 deletions data/presets/highway/cycleway/crossing/bicycle_foot.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
"icon": "temaki-ped_cyclist_crosswalk",
"fields": [
"crossing",
"access",
"surface",
"smoothness",
"tactile_paving",
"crossing/island"
"crossing/island",
"crossing/markings",
"crossing_raised",
"access"
],
"geometry": [
"line"
Expand Down
34 changes: 34 additions & 0 deletions data/presets/highway/cycleway/crossing/traffic_signals.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"icon": "fas-biking",
"fields": [
"crossing",
"surface",
"tactile_paving",
"crossing/island",
"crossing_raised",
"button_operated",
"traffic_signals/sound",
"traffic_signals/vibration",
"access"
],
"geometry": [
"line"
],
"tags": {
"highway": "cycleway",
"cycleway": "crossing",
"crossing": "traffic_signals"
},
"reference": {
"key": "crossing",
"value": "traffic_signals"
},
"terms": [
"cycle path crossing",
"cycleway crossing",
"bicycle crossing",
"bike crossing"
],
"matchScore": 0.95,
"name": "Cycle Crossing With Traffic Signals"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@
"icon": "temaki-cyclist_crosswalk",
"fields": [
"crossing",
"access",
"surface",
"tactile_paving",
"crossing/island"
"crossing/island",
"crossing/markings",
"crossing_raised",
"access"
],
"geometry": [
"line"
],
"tags": {
"highway": "cycleway",
"cycleway": "crossing",
"crossing": "marked"
"crossing": "uncontrolled"
},
"reference": {
"key": "crossing",
"value": "marked"
"value": "uncontrolled"
},
"terms": [
"cycle crosswalk",
Expand Down
5 changes: 3 additions & 2 deletions data/presets/highway/cycleway/crossing/unmarked.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"icon": "fas-biking",
"fields": [
"crossing",
"access",
"surface",
"tactile_paving",
"crossing/island"
"crossing/island",
"crossing_raised",
"access"
],
"geometry": [
"line"
Expand Down
6 changes: 4 additions & 2 deletions data/presets/highway/footway/_crossing.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"fields": [
"crossing",
"access",
"surface",
"tactile_paving",
"crossing/island"
"crossing/island",
"crossing/markings",
"crossing_raised",
"access"
],
"geometry": [
"line"
Expand Down
29 changes: 29 additions & 0 deletions data/presets/highway/footway/crossing/_marked.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"icon": "temaki-pedestrian_crosswalk",
"fields": [
"crossing",
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing_raised",
"access"
],
"moreFields": [
"flashing_lights"
],
"geometry": [
"line"
],
"tags": {
"highway": "footway",
"footway": "crossing",
"crossing": "marked"
},
"reference": {
"key": "crossing",
"value": "marked"
},
"name": "Marked Crossing",
"searchable": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"icon": "temaki-pedestrian_crosswalk",
"fields": [
"crossing",
"access",
"surface",
"tactile_paving",
"crossing/island",
"crossing_raised"
"crossing/markings",
"crossing_raised",
"access"
],
"geometry": [
"line"
Expand All @@ -20,6 +21,6 @@
"key": "crossing",
"value": "zebra"
},
"name": "Marked Crosswalk",
"name": "Marked Crossing",
"searchable": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"icon": "temaki-railway_signals",
"fields": [
"crossing",
"access",
"surface",
"tactile_paving",
"crossing/island",
"crossing/markings",
"crossing_raised",
"button_operated",
"traffic_signals/sound",
"traffic_signals/vibration"
"traffic_signals/vibration",
"access"
],
"moreFields": [
"traffic_signals/arrow",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"icon": "temaki-pedestrian_crosswalk",
"icon": "temaki-pedestrian",
"fields": [
"crossing",
"access",
"surface",
"tactile_paving",
"crossing/island",
"crossing_raised"
"crossing/markings",
"crossing_raised",
"access"
],
"moreFields": [
"flashing_lights"
Expand All @@ -17,18 +18,18 @@
"tags": {
"highway": "footway",
"footway": "crossing",
"crossing": "marked"
"crossing": "uncontrolled"
},
"reference": {
"key": "crossing",
"value": "marked"
"value": "uncontrolled"
},
"terms": [
"marked foot path crossing",
"marked crossing",
"marked crosswalk",
"marked pedestrian crosswalk",
"zebra crossing",
"crosswalk"
],
"name": "Marked Crosswalk"
"name": "Marked Crossing"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"icon": "temaki-pedestrian",
"fields": [
"crossing",
"access",
"surface",
"tactile_paving",
"crossing/island",
"crossing_raised"
"crossing_raised",
"access"
],
"moreFields": [
"flashing_lights"
Expand Down
Loading

0 comments on commit 6a01300

Please sign in to comment.