forked from MapComplete/MapComplete
Themes: add sugar_free, gluten_free and lactose-free to shops- and food-layers
This commit is contained in:
parent
2769747737
commit
b06784e7a0
4 changed files with 244 additions and 1 deletions
|
@ -303,6 +303,57 @@
|
||||||
"osmTags": "service:electricity=yes"
|
"osmTags": "service:electricity=yes"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "sugar_free",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"question": {
|
||||||
|
"en": "Has a sugar-free offering"
|
||||||
|
},
|
||||||
|
"osmTags": {
|
||||||
|
"or": [
|
||||||
|
"diet:sugar_free=yes",
|
||||||
|
"diet:sugar_free=only",
|
||||||
|
"diet:sugar_free=limited"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gluten_free",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"question": {
|
||||||
|
"en": "Has a gluten free offering"
|
||||||
|
},
|
||||||
|
"osmTags": {
|
||||||
|
"or": [
|
||||||
|
"diet:gluten_free=yes",
|
||||||
|
"diet:gluten_free=only",
|
||||||
|
"diet:gluten_free=limited"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lactose_free",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"question": {
|
||||||
|
"en": "Has a lactose free offering"
|
||||||
|
},
|
||||||
|
"osmTags": {
|
||||||
|
"or": [
|
||||||
|
"diet:lactose_free=yes",
|
||||||
|
"diet:lactose_free=only",
|
||||||
|
"diet:lactose_free=limited"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -719,6 +719,9 @@
|
||||||
"condition": "cuisine!=friture",
|
"condition": "cuisine!=friture",
|
||||||
"id": "halal (no friture)"
|
"id": "halal (no friture)"
|
||||||
},
|
},
|
||||||
|
"sugar_free",
|
||||||
|
"gluten_free",
|
||||||
|
"lactose_free",
|
||||||
{
|
{
|
||||||
"id": "organic (no friture)",
|
"id": "organic (no friture)",
|
||||||
"question": {
|
"question": {
|
||||||
|
@ -1105,6 +1108,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"has_organic",
|
"has_organic",
|
||||||
|
"sugar_free",
|
||||||
|
"gluten_free",
|
||||||
|
"lactose_free",
|
||||||
"accepts_cash",
|
"accepts_cash",
|
||||||
"accepts_cards",
|
"accepts_cards",
|
||||||
"dogs"
|
"dogs"
|
||||||
|
|
|
@ -2396,6 +2396,105 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "sugar_free",
|
||||||
|
"question": {
|
||||||
|
"en": "Does this shop have a sugar free offering?"
|
||||||
|
},
|
||||||
|
"questionHint": {
|
||||||
|
"en": "This is important for people following a sugar-free diet, such as people with Diabetes"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "diet:sugar_free=only",
|
||||||
|
"then": {
|
||||||
|
"en": "This shop <b>only sells sugar free</b> products"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:sugar_free=yes",
|
||||||
|
"then": {
|
||||||
|
"en": "This shop has a big sugar free offering"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:sugar_free=limited",
|
||||||
|
"then": {
|
||||||
|
"en": "This shop has a <b>limited sugar free</b> offering"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:sugar_free=no",
|
||||||
|
"then": {
|
||||||
|
"en": "This shop has no sugar free offering"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lactose_free",
|
||||||
|
"question": {
|
||||||
|
"en": "Does {title()} have a lactose-free offering?"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "diet:lactose_free=only",
|
||||||
|
"then": {
|
||||||
|
"en": "<b>Only sells lactose free</b> products"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:lactose_free=yes",
|
||||||
|
"then": {
|
||||||
|
"en": "Big lactose free offering"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:lactose_free=limited",
|
||||||
|
"then": {
|
||||||
|
"en": "<b>Limited lactose free</b> offering"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:lactose_free=no",
|
||||||
|
"then": {
|
||||||
|
"en": "No lactose free offering"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "gluten_free",
|
||||||
|
"question": {
|
||||||
|
"en": "Does this shop have a gluten free offering?"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "diet:gluten_free=only",
|
||||||
|
"then": {
|
||||||
|
"en": "This shop <b>only sells gluten free</b> products"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:gluten_free=yes",
|
||||||
|
"then": {
|
||||||
|
"en": "This shop has a big gluten free offering"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:gluten_free=limited",
|
||||||
|
"then": {
|
||||||
|
"en": "This shop has a <b>limited gluten free</b> offering"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "diet:gluten_free=no",
|
||||||
|
"then": {
|
||||||
|
"en": "This shop has no gluten free offering"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,6 +142,41 @@
|
||||||
"condition": "craft="
|
"condition": "craft="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "second_hand",
|
||||||
|
"question": {
|
||||||
|
"en": "Does this shop sell second-hand items?"
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"if": "second_hand=only",
|
||||||
|
"then": "This shop sells second-hand items <b>only</b>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "second_hand=yes",
|
||||||
|
"then": "This shop sells second-hand items along with new items"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"if": "second_hand=no",
|
||||||
|
"then": "This shop only sells brand-new items"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"or": [
|
||||||
|
"shop=clothes",
|
||||||
|
"shop=car",
|
||||||
|
"shop=books",
|
||||||
|
"shop=charity",
|
||||||
|
"shop=car_repair",
|
||||||
|
"shop=furniture",
|
||||||
|
"shop=bicycle",
|
||||||
|
"shop=bicycle",
|
||||||
|
"shop=mobile_phone",
|
||||||
|
"shop=computer",
|
||||||
|
"shop=toys"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"opening_hours",
|
"opening_hours",
|
||||||
"website",
|
"website",
|
||||||
"email",
|
"email",
|
||||||
|
@ -287,6 +322,32 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"builtin": [
|
||||||
|
"sugar_free",
|
||||||
|
"gluten_free",
|
||||||
|
"lactose_free"
|
||||||
|
],
|
||||||
|
"override": {
|
||||||
|
"condition": {
|
||||||
|
"or": [
|
||||||
|
"shop=supermarket",
|
||||||
|
"shop=convenience",
|
||||||
|
"shop=farm",
|
||||||
|
"shop=greengrocer",
|
||||||
|
"shop=health_food",
|
||||||
|
"shop=deli",
|
||||||
|
"shop=bakery",
|
||||||
|
"shop=beverages",
|
||||||
|
"shop=beverages",
|
||||||
|
"shop=pastry",
|
||||||
|
"shop=chocolate",
|
||||||
|
"shop=frozen_food",
|
||||||
|
"shop=ice_cream"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"questions",
|
"questions",
|
||||||
"reviews"
|
"reviews"
|
||||||
],
|
],
|
||||||
|
@ -456,6 +517,32 @@
|
||||||
},
|
},
|
||||||
"accepts_cash",
|
"accepts_cash",
|
||||||
"accepts_cards",
|
"accepts_cards",
|
||||||
"has_organic"
|
"has_organic",
|
||||||
|
{
|
||||||
|
"id": "second_hand",
|
||||||
|
"options": [
|
||||||
|
{
|
||||||
|
"question": {
|
||||||
|
"en": "Only show shops selling second-hand items"
|
||||||
|
},
|
||||||
|
"osmTags": {
|
||||||
|
"or": [
|
||||||
|
"shop=second_hand",
|
||||||
|
"shop=charity",
|
||||||
|
"second_hand=yes",
|
||||||
|
"second_hand=only"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
|
"and": [
|
||||||
|
"shop!=second_hand"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sugar_free",
|
||||||
|
"gluten_free",
|
||||||
|
"lactose_free"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue