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>
This commit is contained in:
archpdx 2022-06-23 00:11:32 -07:00 committed by GitHub
parent 49f529ea1f
commit b947fd62cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 253 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{
"key": "barrier",
"type": "defaultCheck",
"label": "Barrier",
"geometry": [
"vertex"
],
"strings": {
"options": {
"undefined": "No",
"planter": "Yes"
}
}
}

View file

@ -0,0 +1,6 @@
{
"key": "maxwidth",
"type": "roadheight",
"label": "Max Width",
"snake_case": false
}

View file

@ -0,0 +1,11 @@
{
"icon": "maki-roadblock",
"geometry": [
"line"
],
"tags": {
"barrier": "ditch"
},
"name": "Ditch",
"searchable": false
}

View file

@ -0,0 +1,11 @@
{
"icon": "temaki-railing",
"geometry": [
"line"
],
"tags": {
"barrier": "handrail"
},
"name": "Handrail",
"searchable": false
}

View file

@ -0,0 +1,15 @@
{
"icon": "maki-roadblock",
"fields": [
"access"
],
"geometry": [
"vertex",
"line"
],
"tags": {
"barrier": "log"
},
"name": "Fallen Tree",
"searchable": false
}

View file

@ -0,0 +1,16 @@
{
"icon": "maki-garden",
"fields": [
"access",
"material"
],
"geometry": [
"vertex"
],
"tags": {
"barrier": "planter",
"man_made": "planter"
},
"name": "Planter (Barrier)",
"searchable": false
}

View file

@ -0,0 +1,16 @@
{
"icon": "maki-roadblock",
"fields": [
"access"
],
"geometry": [
"vertex"
],
"terms": [
"drive-through gate"
],
"tags": {
"barrier": "bump_gate"
},
"name": "Bump Gate"
}

View file

@ -0,0 +1,19 @@
{
"icon": "maki-roadblock",
"fields": [
"access"
],
"moreFields": [
"maxwidth"
],
"geometry": [
"vertex"
],
"terms": [
"car trap"
],
"tags": {
"barrier": "bus_trap"
},
"name": "Bus Trap"
}

View file

@ -0,0 +1,18 @@
{
"icon": "maki-roadblock",
"fields": [
"height",
"material"
],
"geometry": [
"line"
],
"tags": {
"barrier": "cable_barrier"
},
"terms": [
"guard cable",
"wire rope safety barrier"
],
"name": "Cable Barrier"
}

View file

@ -0,0 +1,17 @@
{
"icon": "maki-roadblock",
"fields": [
"access"
],
"geometry": [
"vertex"
],
"terms": [
"baffle gate",
"turnstyle"
],
"tags": {
"barrier": "full-height_turnstile"
},
"name": "Full-height Turnstile"
}

View file

@ -0,0 +1,17 @@
{
"icon": "temaki-gate",
"fields": [
"access"
],
"geometry": [
"vertex"
],
"tags": {
"barrier": "hampshire_gate"
},
"terms": [
"new zealand gate",
"wire gate"
],
"name": "Hampshire Gate"
}

View file

@ -0,0 +1,29 @@
{
"icon": "maki-roadblock",
"fields": [
"height",
"material"
],
"moreFields": [
"access"
],
"geometry": [
"point",
"line"
],
"tags": {
"barrier": "jersey_barrier"
},
"terms": [
"concrete median",
"concrete barrier",
"constant-slope barrier",
"f-shape barrier",
"k-rail",
"median",
"new jersey wall",
"ontario tall wall",
"plastic barrier"
],
"name": "Jersey Barrier"
}

View file

@ -0,0 +1,16 @@
{
"icon": "maki-roadblock",
"fields": [
"access"
],
"moreFields": [
"wheelchair"
],
"geometry": [
"vertex"
],
"tags": {
"barrier": "motorcycle_barrier"
},
"name": "Motorcycle Barrier"
}

View file

@ -0,0 +1,14 @@
{
"icon": "temaki-rope_fence",
"fields": [
"access"
],
"geometry": [
"vertex",
"line"
],
"tags": {
"barrier": "rope"
},
"name": "Rope Fence"
}

View file

@ -0,0 +1,17 @@
{
"icon": "temaki-gate",
"geometry": [
"vertex",
"line"
],
"fields": [
"access"
],
"moreFields": [
"entrance"
],
"tags": {
"barrier": "wicket_gate"
},
"name": "Wicket Gate"
}

View file

@ -0,0 +1,17 @@
{
"icon": "maki-garden",
"geometry": [
"point",
"vertex",
"area"
],
"fields": [
"material",
"barrier_planter"
],
"tags": {
"man_made": "planter"
},
"matchScore": 0.9,
"name": "Planter"
}