Skip to content

Commit cd8be8b

Browse files
committed
Adds presets for Traffic Sign, Speed Limit Sign, and City Limit Sign, each with point/vertex variants to account for different direction fields
Makes the maxspeed field compatible with node entities
1 parent 85383c3 commit cd8be8b

File tree

13 files changed

+227
-1
lines changed

13 files changed

+227
-1
lines changed

data/presets.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,6 +1730,9 @@ en:
17301730
traffic_calming:
17311731
# traffic_calming=*
17321732
label: Type
1733+
traffic_sign:
1734+
# traffic_sign=*
1735+
label: Traffic Sign
17331736
traffic_signals:
17341737
# traffic_signals=*
17351738
label: Type
@@ -6079,6 +6082,36 @@ en:
60796082
name: Speed Table
60806083
# 'terms: flat top,hump,speed,slow'
60816084
terms: '<translate with synonyms or related terms for ''Speed Table'', separated by commas>'
6085+
traffic_sign:
6086+
# traffic_sign=*
6087+
name: Traffic Sign
6088+
# 'terms: road,highway'
6089+
terms: '<translate with synonyms or related terms for ''Traffic Sign'', separated by commas>'
6090+
traffic_sign/city_limit:
6091+
# traffic_sign=city_limit
6092+
name: City Limit Sign
6093+
# 'terms: town,village,hamlet,boundary,edge,border,road,highway'
6094+
terms: '<translate with synonyms or related terms for ''City Limit Sign'', separated by commas>'
6095+
traffic_sign/city_limit_vertex:
6096+
# traffic_sign=city_limit
6097+
name: City Limit Sign
6098+
# 'terms: town,village,hamlet,boundary,edge,border,road,highway'
6099+
terms: '<translate with synonyms or related terms for ''City Limit Sign'', separated by commas>'
6100+
traffic_sign/maxspeed:
6101+
# traffic_sign=maxspeed
6102+
name: Speed Limit Sign
6103+
# 'terms: max speed,maximum speed,road,highway'
6104+
terms: '<translate with synonyms or related terms for ''Speed Limit Sign'', separated by commas>'
6105+
traffic_sign/maxspeed_vertex:
6106+
# traffic_sign=maxspeed
6107+
name: Speed Limit Sign
6108+
# 'terms: max speed,maximum speed,road,highway'
6109+
terms: '<translate with synonyms or related terms for ''Speed Limit Sign'', separated by commas>'
6110+
traffic_sign_vertex:
6111+
# traffic_sign=*
6112+
name: Traffic Sign
6113+
# 'terms: road,highway'
6114+
terms: '<translate with synonyms or related terms for ''Traffic Sign'', separated by commas>'
60826115
type/boundary:
60836116
# type=boundary
60846117
name: Boundary

data/presets/fields.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@
301301
"tracktype": {"key": "tracktype", "type": "combo", "label": "Track Type", "placeholder": "Solid, Mostly Solid, Soft...", "strings": {"options": {"grade1": "Solid: paved or heavily compacted hardcore surface", "grade2": "Mostly Solid: gravel/rock with some soft material mixed in", "grade3": "Even mixture of hard and soft materials", "grade4": "Mostly Soft: soil/sand/grass with some hard material mixed in", "grade5": "Soft: soil/sand/grass"}}},
302302
"trade": {"key": "trade", "type": "typeCombo", "label": "Type"},
303303
"traffic_calming": {"key": "traffic_calming", "type": "typeCombo", "label": "Type"},
304+
"traffic_sign": {"key": "traffic_sign", "type": "typeCombo", "label": "Traffic Sign"},
304305
"traffic_signals": {"key": "traffic_signals", "type": "combo", "label": "Type", "default": "signal"},
305306
"traffic_signals/direction": {"key": "traffic_signals:direction", "type": "combo", "label": "Direction", "strings": {"options": {"forward": "Forward", "backward": "Backward", "both": "Both / All"}}},
306307
"trail_visibility": {"key": "trail_visibility", "type": "combo", "label": "Trail Visibility", "placeholder": "Excellent, Good, Bad...", "strings": {"options": {"excellent": "Excellent: unambiguous path or markers everywhere", "good": "Good: markers visible, sometimes require searching", "intermediate": "Intermediate: few markers, path mostly visible", "bad": "Bad: no markers, path sometimes invisible/pathless", "horrible": "Horrible: often pathless, some orientation skills required", "no": "No: pathless, excellent orientation skills required"}}},
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"key": "traffic_sign",
3+
"type": "typeCombo",
4+
"label": "Traffic Sign"
5+
}

data/presets/presets.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,12 @@
926926
"traffic_calming/island": {"icon": "temaki-diamond", "geometry": ["vertex"], "terms": ["circle", "roundabout", "slow"], "tags": {"traffic_calming": "island"}, "name": "Traffic Island"},
927927
"traffic_calming/rumble_strip": {"icon": "temaki-diamond", "fields": ["direction_vertex"], "geometry": ["vertex", "line"], "terms": ["audible lines", "sleeper lines", "growlers"], "tags": {"traffic_calming": "rumble_strip"}, "name": "Rumble Strip"},
928928
"traffic_calming/table": {"icon": "temaki-diamond", "fields": ["surface"], "geometry": ["vertex"], "tags": {"traffic_calming": "table"}, "terms": ["flat top", "hump", "speed", "slow"], "name": "Speed Table"},
929+
"traffic_sign_vertex": {"icon": "maki-square-stroked", "fields": ["traffic_sign", "direction_vertex"], "geometry": ["vertex"], "tags": {"traffic_sign": "*"}, "terms": ["road", "highway"], "name": "Traffic Sign"},
930+
"traffic_sign": {"icon": "maki-square-stroked", "fields": ["traffic_sign", "direction"], "geometry": ["point"], "tags": {"traffic_sign": "*"}, "terms": ["road", "highway"], "name": "Traffic Sign"},
931+
"traffic_sign/city_limit_vertex": {"icon": "maki-square-stroked", "fields": ["traffic_sign", "direction_vertex", "name"], "geometry": ["vertex"], "tags": {"traffic_sign": "city_limit"}, "terms": ["town", "village", "hamlet", "boundary", "edge", "border", "road", "highway"], "name": "City Limit Sign"},
932+
"traffic_sign/city_limit": {"icon": "maki-square-stroked", "fields": ["traffic_sign", "direction", "name"], "geometry": ["point"], "tags": {"traffic_sign": "city_limit"}, "terms": ["town", "village", "hamlet", "boundary", "edge", "border", "road", "highway"], "name": "City Limit Sign"},
933+
"traffic_sign/maxspeed_vertex": {"icon": "maki-square-stroked", "fields": ["traffic_sign", "direction_vertex", "maxspeed"], "geometry": ["vertex"], "tags": {"traffic_sign": "maxspeed"}, "terms": ["max speed", "maximum speed", "road", "highway"], "name": "Speed Limit Sign"},
934+
"traffic_sign/maxspeed": {"icon": "maki-square-stroked", "fields": ["traffic_sign", "direction", "maxspeed"], "geometry": ["point"], "tags": {"traffic_sign": "maxspeed"}, "terms": ["max speed", "maximum speed", "road", "highway"], "name": "Speed Limit Sign"},
929935
"type/multipolygon": {"icon": "iD-multipolygon", "geometry": ["area", "relation"], "tags": {"type": "multipolygon"}, "removeTags": {}, "name": "Multipolygon", "searchable": false, "matchScore": 0.1},
930936
"type/boundary": {"icon": "iD-boundary", "fields": ["name", "boundary"], "geometry": ["relation"], "tags": {"type": "boundary"}, "name": "Boundary"},
931937
"type/boundary/administrative": {"icon": "iD-boundary", "fields": ["name", "admin_level"], "geometry": ["relation"], "tags": {"type": "boundary", "boundary": "administrative"}, "reference": {"key": "boundary", "value": "administrative"}, "name": "Administrative Boundary"},
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"icon": "maki-square-stroked",
3+
"fields": [
4+
"traffic_sign",
5+
"direction"
6+
],
7+
"geometry": [
8+
"point"
9+
],
10+
"tags": {
11+
"traffic_sign": "*"
12+
},
13+
"terms": [
14+
"road",
15+
"highway"
16+
],
17+
"name": "Traffic Sign"
18+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"icon": "maki-square-stroked",
3+
"fields": [
4+
"traffic_sign",
5+
"direction",
6+
"name"
7+
],
8+
"geometry": [
9+
"point"
10+
],
11+
"tags": {
12+
"traffic_sign": "city_limit"
13+
},
14+
"terms": [
15+
"town",
16+
"village",
17+
"hamlet",
18+
"boundary",
19+
"edge",
20+
"border",
21+
"road",
22+
"highway"
23+
],
24+
"name": "City Limit Sign"
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"icon": "maki-square-stroked",
3+
"fields": [
4+
"traffic_sign",
5+
"direction_vertex",
6+
"name"
7+
],
8+
"geometry": [
9+
"vertex"
10+
],
11+
"tags": {
12+
"traffic_sign": "city_limit"
13+
},
14+
"terms": [
15+
"town",
16+
"village",
17+
"hamlet",
18+
"boundary",
19+
"edge",
20+
"border",
21+
"road",
22+
"highway"
23+
],
24+
"name": "City Limit Sign"
25+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"icon": "maki-square-stroked",
3+
"fields": [
4+
"traffic_sign",
5+
"direction",
6+
"maxspeed"
7+
],
8+
"geometry": [
9+
"point"
10+
],
11+
"tags": {
12+
"traffic_sign": "maxspeed"
13+
},
14+
"terms": [
15+
"max speed",
16+
"maximum speed",
17+
"road",
18+
"highway"
19+
],
20+
"name": "Speed Limit Sign"
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"icon": "maki-square-stroked",
3+
"fields": [
4+
"traffic_sign",
5+
"direction_vertex",
6+
"maxspeed"
7+
],
8+
"geometry": [
9+
"vertex"
10+
],
11+
"tags": {
12+
"traffic_sign": "maxspeed"
13+
},
14+
"terms": [
15+
"max speed",
16+
"maximum speed",
17+
"road",
18+
"highway"
19+
],
20+
"name": "Speed Limit Sign"
21+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"icon": "maki-square-stroked",
3+
"fields": [
4+
"traffic_sign",
5+
"direction_vertex"
6+
],
7+
"geometry": [
8+
"vertex"
9+
],
10+
"tags": {
11+
"traffic_sign": "*"
12+
},
13+
"terms": [
14+
"road",
15+
"highway"
16+
],
17+
"name": "Traffic Sign"
18+
}

0 commit comments

Comments
 (0)