207 lines
No EOL
4.5 KiB
JSON
207 lines
No EOL
4.5 KiB
JSON
{
|
|
"id": "shower",
|
|
"name": {
|
|
"en": "Shower",
|
|
"de": "Dusche"
|
|
},
|
|
"minzoom": 12,
|
|
"source": {
|
|
"osmTags": "amenity=shower"
|
|
},
|
|
"title": {
|
|
"render": {
|
|
"en": "Shower",
|
|
"de": "Dusche"
|
|
}
|
|
},
|
|
"presets": [
|
|
{
|
|
"title": {
|
|
"en": "a shower",
|
|
"de": "eine Dusche"
|
|
},
|
|
"description": {
|
|
"en": "A (public) shower",
|
|
"de": "Eine (öffentliche) Dusche"
|
|
},
|
|
"tags": [
|
|
"amenity=shower"
|
|
]
|
|
}
|
|
],
|
|
"tagRenderings": [
|
|
"images",
|
|
"level",
|
|
{
|
|
"id": "access",
|
|
"question": {
|
|
"en": "Who can use this shower?",
|
|
"de": "Wer darf diese Dusche nutzen?"
|
|
},
|
|
"mappings": [
|
|
{
|
|
"if": "access=yes",
|
|
"then": {
|
|
"en": "Anyone can use this shower",
|
|
"de": "Jeder darf diese Dusche nutzen"
|
|
}
|
|
},
|
|
{
|
|
"if": "access=customers",
|
|
"then": {
|
|
"en": "Only customers can use this shower",
|
|
"de": "Nur Kunden dürfen diese Dusche nutzen"
|
|
}
|
|
},
|
|
{
|
|
"if": "access=key",
|
|
"then": {
|
|
"en": "Accesible, but one has to ask for a key",
|
|
"de": "Zugänglich, aber man muss nach einem Schlüssel fragen"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fee",
|
|
"question": {
|
|
"en": "Is there a fee for using this shower?",
|
|
"de": "Ist die Nutzung der Dusche kostenpflichtig?"
|
|
},
|
|
"mappings": [
|
|
{
|
|
"if": "fee=yes",
|
|
"then": {
|
|
"en": "There is a fee for using this shower",
|
|
"de": "Die Nutzung der Dusche ist kostenpflichtig"
|
|
}
|
|
},
|
|
{
|
|
"if": "fee=no",
|
|
"then": {
|
|
"en": "This shower is free to use",
|
|
"de": "Die Nutzung der Dusche ist kostenlos"
|
|
},
|
|
"addExtraTags": [
|
|
"charge="
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "charge",
|
|
"condition": "fee=yes",
|
|
"question": {
|
|
"en": "How much does it cost to use this shower?",
|
|
"de": "Wie viel kostet es, diese Dusche zu nutzen?"
|
|
},
|
|
"freeform": {
|
|
"key": "charge",
|
|
"type": "string",
|
|
"placeholder": {
|
|
"en": "e.g. 1.50 EUR",
|
|
"de": "z.B. 1,50 EUR"
|
|
}
|
|
},
|
|
"render": {
|
|
"en": "It costs {charge} to use this shower",
|
|
"de": "Es kostet {charge} um diese Dusche zu nutzen"
|
|
}
|
|
},
|
|
"opening_hours",
|
|
{
|
|
"id": "hot_water",
|
|
"question": {
|
|
"en": "Does this shower have hot water available?",
|
|
"de": "Verfügt diese Dusche über Warmwasser?"
|
|
},
|
|
"mappings": [
|
|
{
|
|
"if": "hot_water=yes",
|
|
"then": {
|
|
"en": "Hot water is available here",
|
|
"de": "Warmwasser ist hier verfügbar"
|
|
}
|
|
},
|
|
{
|
|
"if": "hot_water=fee",
|
|
"then": {
|
|
"en": "Hot water is available here, but there is a fee",
|
|
"de": "Warmes Wasser ist hier verfügbar, aber kostenpflichtig"
|
|
}
|
|
},
|
|
{
|
|
"if": "hot_water=no",
|
|
"then": {
|
|
"en": "There is no hot water available here",
|
|
"de": "Hier gibt es kein warmes Wasser"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"builtin": "payment-options-split",
|
|
"override": {
|
|
"condition": {
|
|
"or": [
|
|
"fee=yes",
|
|
"hot_water=fee"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"filter": [
|
|
"free",
|
|
{
|
|
"id": "hot-water",
|
|
"options": [
|
|
{
|
|
"question": {
|
|
"en": "Hot water available",
|
|
"de": "Warmwasser verfügbar"
|
|
},
|
|
"osmTags": {
|
|
"or": [
|
|
"hot_water=yes",
|
|
"hot_water=fee"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"open_now"
|
|
],
|
|
"deletion": {
|
|
"softDeletionTags": {
|
|
"and": [
|
|
"disused:amenity={amenity}",
|
|
"amenity="
|
|
]
|
|
},
|
|
"neededChangesets": 1
|
|
},
|
|
"allowMove": {
|
|
"enableImproveAccuracy": true,
|
|
"enableRelocation": false
|
|
},
|
|
"mapRendering": [
|
|
{
|
|
"icon": "circle:white;./assets/layers/shower/shower.svg",
|
|
"location": [
|
|
"point",
|
|
"centroid"
|
|
],
|
|
"iconBadges": [
|
|
{
|
|
"if": "opening_hours~*",
|
|
"then": "icons.isOpen"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"description": {
|
|
"en": "A layer showing (public) showers",
|
|
"de": "Eine Ebene mit (öffentlichen) Duschen"
|
|
}
|
|
} |