mapcomplete/assets/layers/elevator/elevator.json
2022-07-27 10:13:31 +02:00

177 lines
No EOL
4.4 KiB
JSON

{
"id": "elevator",
"name": {
"en": "elevator",
"fr": "ascenseur"
},
"source": {
"osmTags": "highway=elevator"
},
"minzoom": 13,
"description": {
"en": "This layer show elevators and asks for operational status and elevator dimensions. Useful for wheelchair accessibility information",
"fr": "Ce calque montre les ascenseurs et demande l'état opérationnel et les dimensions de l'ascenseur. Utile pour les informations sur l'accessibilité en fauteuil roulant"
},
"title": {
"en": "Elevator",
"fr": "Ascenseur"
},
"tagRenderings": [
"images",
"multilevels",
{
"id": "operational_status",
"question": {
"en": "Does this elevator work?",
"fr": "Cet ascenseur fonctionne-t-il ?"
},
"mappings": [
{
"if": "operational_status=broken",
"then": {
"en": "This elevator is broken",
"fr": "Cet ascenseur est en panne"
},
"icon": "close:red"
},
{
"if": "operational_status=closed",
"then": {
"en": "This elevator is closed <span class='subtle'>e.g. because renovation works are going on</span>",
"fr": "Cet ascenseur est fermé <span class='subtle'>par ex. parce que des travaux de rénovation sont en cours</span>"
},
"icon": "invalid:red"
},
{
"if": "operational_status=ok",
"then": {
"en": "This elevator works",
"fr": "Cet ascenseur fonctionne"
}
},
{
"if": "operational_status=",
"then": {
"en": "This elevator works",
"fr": "Cet ascenseur fonctionne"
},
"hideInAnswer": true
}
]
},
{
"id": "door-width",
"render": {
"en": "This elevator's doors have a width of {canonical(door:width)}",
"fr": "Les portes de cet ascenseur ont une largeur de {canonical(door:width)}"
},
"question": {
"en": "What is the width of this elevator's entrance?",
"fr": "Quelle est la largeur de l'entrée de cet ascenseur ?"
},
"freeform": {
"key": "door:width",
"type": "pfloat"
}
},
{
"id": "elevator-width",
"render": {
"en": "This elevator has a width of {canonical(elevator:width)}",
"fr": "Cet ascenseur a une largeur de {canonical(elevator:width)}"
},
"question": {
"en": "What is the width of this elevator?",
"fr": "Quelle est la largeur de cet ascenseur ?"
},
"freeform": {
"key": "elevator:width",
"type": "pfloat"
}
},
{
"id": "elevator-depth",
"render": {
"en": "This elevator has a depth of {canonical(elevator:depth)}",
"fr": "Cet ascenseur a une profondeur de {canonical(elevator:depth)}"
},
"question": {
"en": "What is the depth of this elevator?",
"fr": "Quelle est la profondeur de cet ascenseur ?"
},
"freeform": {
"key": "elevator:depth",
"type": "pfloat"
}
},
"induction-loop"
],
"mapRendering": [
{
"icon": {
"render": "circle:white;./assets/layers/elevator/elevator_wheelchair.svg"
},
"iconSize": "40,40,bottom",
"location": [
"point",
"centroid"
],
"iconBadges": [
{
"if": {
"or": [
"operational_status=broken",
"operational_status=closed"
]
},
"then": "close:#c33"
}
]
}
],
"presets": [
{
"title": {
"en": "an elevator",
"nl": "een lift",
"fr": "un ascenseur"
},
"tags": [
"highway=elevator"
]
}
],
"units": [
{
"appliesToKey": [
"door:width",
"elevator:width",
"elevator:depth"
],
"applicableUnits": [
{
"canonicalDenomination": "m",
"alternativeDenomination": [
"meter"
],
"human": {
"en": "meter",
"fr": "mètre"
}
},
{
"default": true,
"canonicalDenomination": "cm",
"alternativeDenomination": [
"centimeter",
"cms"
],
"human": {
"en": "centimeter",
"fr": "centimètre"
}
}
]
}
]
}