Skip to content

Commit b947fd6

Browse files
arch0345tyrasd
andauthored
Add more barrier presets (#506)
* Add more barrier presets Also added field for `maxwidth` * Rope Barrier -> Rope Fence * Add terms to Hampshire Gate preset * Add `wheelchair` to moreFields in Motorcycle Barrier preset Co-authored-by: Martin Raifer <martin@raifer.tech> * Remove fields from Wicket Gate preset * Change Planter preset * Remove `barrier=planter` preset * Add `planter_barrier` field which adds `barrier=planter` * Add `man_made=planter` preset with `planter_barrier` field * npm run lint:fix * Rename planter_barrier.json to barrier_planter.json * Update field name * Remove fields * be more restrictive on planter geometry types * add non-searchable "Planter (Barrier)" preset This allows to show the "access" field if a man_made=planter vertex has also the barrier=planter tag. Co-authored-by: Martin Raifer <martin@raifer.tech>
1 parent 49f529e commit b947fd6

16 files changed

+253
-0
lines changed

data/fields/barrier_planter.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"key": "barrier",
3+
"type": "defaultCheck",
4+
"label": "Barrier",
5+
"geometry": [
6+
"vertex"
7+
],
8+
"strings": {
9+
"options": {
10+
"undefined": "No",
11+
"planter": "Yes"
12+
}
13+
}
14+
}

data/fields/maxwidth.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"key": "maxwidth",
3+
"type": "roadheight",
4+
"label": "Max Width",
5+
"snake_case": false
6+
}

data/presets/barrier/_ditch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"icon": "maki-roadblock",
3+
"geometry": [
4+
"line"
5+
],
6+
"tags": {
7+
"barrier": "ditch"
8+
},
9+
"name": "Ditch",
10+
"searchable": false
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"icon": "temaki-railing",
3+
"geometry": [
4+
"line"
5+
],
6+
"tags": {
7+
"barrier": "handrail"
8+
},
9+
"name": "Handrail",
10+
"searchable": false
11+
}

data/presets/barrier/_log.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"icon": "maki-roadblock",
3+
"fields": [
4+
"access"
5+
],
6+
"geometry": [
7+
"vertex",
8+
"line"
9+
],
10+
"tags": {
11+
"barrier": "log"
12+
},
13+
"name": "Fallen Tree",
14+
"searchable": false
15+
}

data/presets/barrier/_planter.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"icon": "maki-garden",
3+
"fields": [
4+
"access",
5+
"material"
6+
],
7+
"geometry": [
8+
"vertex"
9+
],
10+
"tags": {
11+
"barrier": "planter",
12+
"man_made": "planter"
13+
},
14+
"name": "Planter (Barrier)",
15+
"searchable": false
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"icon": "maki-roadblock",
3+
"fields": [
4+
"access"
5+
],
6+
"geometry": [
7+
"vertex"
8+
],
9+
"terms": [
10+
"drive-through gate"
11+
],
12+
"tags": {
13+
"barrier": "bump_gate"
14+
},
15+
"name": "Bump Gate"
16+
}

data/presets/barrier/bus_trap.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"icon": "maki-roadblock",
3+
"fields": [
4+
"access"
5+
],
6+
"moreFields": [
7+
"maxwidth"
8+
],
9+
"geometry": [
10+
"vertex"
11+
],
12+
"terms": [
13+
"car trap"
14+
],
15+
"tags": {
16+
"barrier": "bus_trap"
17+
},
18+
"name": "Bus Trap"
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"icon": "maki-roadblock",
3+
"fields": [
4+
"height",
5+
"material"
6+
],
7+
"geometry": [
8+
"line"
9+
],
10+
"tags": {
11+
"barrier": "cable_barrier"
12+
},
13+
"terms": [
14+
"guard cable",
15+
"wire rope safety barrier"
16+
],
17+
"name": "Cable Barrier"
18+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"icon": "maki-roadblock",
3+
"fields": [
4+
"access"
5+
],
6+
"geometry": [
7+
"vertex"
8+
],
9+
"terms": [
10+
"baffle gate",
11+
"turnstyle"
12+
],
13+
"tags": {
14+
"barrier": "full-height_turnstile"
15+
},
16+
"name": "Full-height Turnstile"
17+
}

0 commit comments

Comments
 (0)