forked from MapComplete/MapComplete
Add filter, questions and rendering for organic
This commit is contained in:
parent
bee8aaedbe
commit
f319a0c289
12 changed files with 228 additions and 136 deletions
|
@ -206,6 +206,43 @@
|
|||
"internet",
|
||||
"internet-fee",
|
||||
"internet-ssid",
|
||||
{
|
||||
"id": "organic",
|
||||
"question": {
|
||||
"en": "Does this shop offer organic products?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "organic=yes",
|
||||
"then": {
|
||||
"en": "This shop offers organic products"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "organic=only",
|
||||
"then": {
|
||||
"en": "This shop only offers organic products"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "organic=no",
|
||||
"then": {
|
||||
"en": "This shop does not offer organic products"
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"or": [
|
||||
"shop=supermarket",
|
||||
"shop=convenience",
|
||||
"shop=farm",
|
||||
"shop=greengrocer",
|
||||
"shop=health_food",
|
||||
"shop=clothes",
|
||||
"shop=shoes"
|
||||
]
|
||||
}
|
||||
},
|
||||
"questions",
|
||||
"reviews"
|
||||
],
|
||||
|
@ -269,6 +306,15 @@
|
|||
{
|
||||
"if": "opening_hours~*",
|
||||
"then": "isOpen"
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"or": [
|
||||
"organic=yes",
|
||||
"organic=only"
|
||||
]
|
||||
},
|
||||
"then": "./assets/layers/food/organic.svg"
|
||||
}
|
||||
],
|
||||
"label": {
|
||||
|
@ -341,6 +387,7 @@
|
|||
]
|
||||
},
|
||||
"accepts_cash",
|
||||
"accepts_cards"
|
||||
"accepts_cards",
|
||||
"has_organic"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue