mapcomplete/assets/layers/bike_cleaning/bike_cleaning.json
2021-11-25 17:59:12 +01:00

199 lines
No EOL
5.3 KiB
JSON

{
"id": "bike_cleaning",
"name": {
"en": "Bike cleaning service",
"nl": "Fietsschoonmaakpunt",
"fr": "Service de nettoyage de vélo",
"it": "Servizio lavaggio bici",
"de": "Fahrrad-Reinigungsdienst",
"zh_Hant": "單車清理服務",
"pt_BR": "Serviço de limpeza de bicicletas",
"pt": "Serviço de limpeza de bicicletas"
},
"title": {
"render": {
"en": "Bike cleaning service",
"nl": "Fietsschoonmaakpunt",
"fr": "Service de nettoyage de vélo",
"it": "Servizio lavaggio bici",
"de": "Fahrrad-Reinigungsdienst",
"zh_Hant": "單車清理服務",
"pt_BR": "Serviço de limpeza de bicicletas",
"pt": "Serviço de limpeza de bicicletas"
},
"mappings": [
{
"if": "name~*",
"then": {
"en": "Bike cleaning service <i>{name}</i>",
"nl": "Fietsschoonmaakpunt <i>{name}</i>",
"fr": "Service de nettoyage de vélo <i>{name}</i>",
"it": "Servizio lavaggio bici <i>{name}</i>",
"de": "Fahrrad-Reinigungsdienst<i>{name}</i>",
"zh_Hant": "單車清理服務 <i>{name}</i>",
"pt_BR": "Serviço de limpeza de bicicletas <i>{name}</i>",
"pt": "Serviço de limpeza de bicicletas <i>{name}</i>"
}
}
]
},
"source": {
"osmTags": {
"or": [
"service:bicycle:cleaning=yes",
"service:bicycle:cleaning=diy",
"amenity=bicycle_wash"
]
}
},
"minzoom": 13,
"presets": [
{
"title": {
"en": "Bike cleaning service",
"nl": "Fietsschoonmaakpunt",
"fr": "Service de nettoyage de vélo",
"it": "Servizio lavaggio bici",
"de": "Fahrrad-Reinigungsdienst",
"zh_Hant": "單車清理服務",
"pt_BR": "Serviço de limpeza de bicicletas",
"pt": "Serviço de limpeza de bicicletas"
},
"tags": [
"amenity=bicycle_wash"
]
}
],
"titleIcons": [
{
"render": "<img src='./assets/layers/bike_cleaning/bike_cleaning_icon.svg'/>"
}
],
"tagRenderings": [
"images",
{
"question": {
"en": "How much does it cost to use the cleaning service?",
"de": "Wie viel kostet die Nutzung des Reinigungsdienstes?"
},
"render": {
"en": "Using the cleaning service costs {service:bicycle:cleaning:charge}",
"de": "Nutzung des Reinigungsservice kostet {service:bicycle:cleaning:charge}"
},
"condition": "amenity!=bike_wash",
"freeform": {
"key": "service:bicycle:cleaning:charge",
"addExtraTags": [
"service:bicycle:cleaning:fee=yes"
],
"inline": true
},
"mappings": [
{
"if": "service:bicycle:cleaning:fee=no&service:bicycle:cleaning:charge=",
"then": {
"en": "The cleaning service is free to use",
"de": "Der Reinigungsservice ist kostenlos"
}
},
{
"if": "service:bicycle:cleaning:fee=no",
"then": {
"en": "Free to use",
"de": "Kostenlose Nutzung"
},
"hideInAnswer": true
},
{
"if": "service:bicycle:cleaning:fee=yes",
"then": {
"en": "The cleaning service has a fee, but the amount is not known",
"de": "Der Reinigungsdienst ist kostenpflichtig, aber der Betrag ist nicht bekannt"
}
}
],
"id": "bike_cleaning-service:bicycle:cleaning:charge"
},
{
"question": {
"en": "How much does it cost to use the cleaning service?",
"de": "Wie viel kostet die Nutzung des Reinigungsdienstes?"
},
"render": {
"en": "Using the cleaning service costs {charge}",
"de": "Die Nutzung des Reinigungsdienstes kostet {charge}"
},
"condition": "amenity=bike_wash",
"freeform": {
"key": "charge",
"addExtraTags": [
"fee=yes"
]
},
"mappings": [
{
"if": "fee=no&charge=",
"then": {
"en": "Free to use cleaning service",
"de": "Kostenloser Reinigungsservice"
}
},
{
"if": "fee=no",
"then": {
"en": "Free to use",
"de": "Kostenlose Nutzung"
},
"hideInAnswer": true
},
{
"if": "fee=yes",
"then": {
"en": "The cleaning service has a fee",
"de": "Der Reinigungsservice ist kostenpflichtig"
}
}
],
"id": "bike_cleaning-charge"
}
],
"deletion": {
"softDeletionTags": {
"and": [
"disused:amenity:={amenity}",
"amenity="
]
},
"neededChangesets": 1
},
"allowMove": {
"enableRelocation": false,
"enableImproveAccuraccy": true
},
"mapRendering": [
{
"icon": {
"render": "./assets/layers/bike_cleaning/bike_cleaning.svg"
},
"iconBadges": [
{
"if": {
"and": [
"service:bicycle:cleaning~*",
"amenity!=bike_wash"
]
},
"then": {
"render": "./assets/layers/bike_cleaning/bike_cleaning_icon.svg",
"roaming": true
}
}
],
"iconSize": "50,50,bottom",
"location": [
"point",
"centroid"
]
}
]
}