{
  "id": "entrance",
  "name": {
    "en": "Entrance",
    "nl": "Toegang",
    "de": "Eingänge",
    "ca": "Entrada",
    "es": "Entrada"
  },
  "description": {
    "en": "A layer showing entrances and offering capabilities to survey some advanced data which is important for e.g. wheelchair users (but also bicycle users, people who want to deliver, …)",
    "nl": "Een laag met ingangen (van gebouwen etc.) waarmee je details kunt aanvullen die belangrijk zijn voor bijvoorbeeld rolstoelgebruikers (en fietsers, leveranciers, …)",
    "de": "Eine Ebene, die Eingänge anzeigt und die Möglichkeit bietet, weitere Daten zu erheben, die z. B. für Rollstuhlfahrer wichtig sind (aber auch für Radfahrer, Lieferpersonal, …)",
    "es": "Una capa que muestra capas y ofrece la posibilidad de sondear algunos datos avanzados que son importantes para, por ejemplo, usuarios de sillas de ruedas (pero también incluye ciclistas, gente que quiere repartir, ...)"
  },
  "source": {
    "osmTags": {
      "or": [
        "entrance~*",
        "indoor=door"
      ]
    }
  },
  "minzoom": 14,
  "title": {
    "render": {
      "en": "Entrance",
      "nl": "Ingang",
      "ca": "Entrada",
      "da": "Indgang",
      "de": "Eingang",
      "es": "Entrada"
    }
  },
  "tagRenderings": [
    "images",
    {
      "id": "Entrance type",
      "question": {
        "en": "What type of entrance is this?",
        "nl": "Wat voor ingang is dit?",
        "de": "Um welchen Eingangstyp handelt es sich hier?",
        "es": "¿Qué tipo de entrada es esta?"
      },
      "mappings": [
        {
          "if": "entrance=yes",
          "then": {
            "en": "No specific entrance type is known",
            "nl": "Het specifieke type ingang is onbekend",
            "de": "Der Eingangstyp ist nicht bekannt",
            "es": "No se conoce un tipo de entrada específico"
          },
          "hideInAnswer": true
        },
        {
          "if": {
            "and": [
              "entrance=",
              "indoor=door"
            ]
          },
          "then": {
            "en": "This is an indoor door, separating a room or a corridor within a single building",
            "nl": "Dit is een binnendeur, die een kamer of een gang volledig binnen hetzelfde gebouw afsluit",
            "de": "Dies ist eine Innentür, die Räume oder Gänge innerhalb eines Gebäudes verbindet",
            "es": "Esta es una puerta interior, que separa una habitación o pasillo dentro de un único edificio"
          }
        },
        {
          "if": {
            "and": [
              "indoor=",
              "entrance=main"
            ]
          },
          "then": {
            "en": "This is the main entrance",
            "nl": "Dit is de hoofdingang",
            "de": "Dies ist der Haupteingang",
            "es": "Esta es la entrada principal"
          }
        },
        {
          "if": {
            "and": [
              "indoor=",
              "entrance=secondary"
            ]
          },
          "then": {
            "en": "This is a secondary entrance",
            "nl": "Dit is een secundaire ingang",
            "de": "Dies ist ein Nebeneingang",
            "es": "Esta es una entrada secundaria"
          }
        },
        {
          "if": {
            "and": [
              "indoor=",
              "entrance=service"
            ]
          },
          "then": {
            "en": "This is a service entrance - normally only used for employees, delivery, …",
            "nl": "Dit is een dienstingang - normaal gezien enkel gebruikt door werknemers, leveranciers, …",
            "de": "Dies ist ein Diensteingang - normalerweise nur für Mitarbeiter, Anlieferung, …",
            "es": "Esta es una entrada de servicio - normalmente solo la utilizan empleados, repartidores, …"
          }
        },
        {
          "if": {
            "and": [
              "indoor=",
              "entrance=exit"
            ]
          },
          "then": {
            "en": "This is an exit where one can not enter",
            "nl": "Dit is enkel een uitgang, je kan hier niet naar binnen",
            "de": "Dies ist ein Ausgang, ohne Zutrittsmöglichkeit",
            "es": "Esta es una salida por la cual no se puede entrar"
          }
        },
        {
          "if": {
            "and": [
              "indoor=",
              "entrance=entrance"
            ]
          },
          "then": {
            "en": "This is an entrance where one can only enter (but not exit)",
            "nl": "Dit is een ingang waar je enkel naar binnen kunt (niet naar buiten)",
            "de": "Dies ist ein Eingang, an dem man nur hineingehen kann (aber nicht hinausgehen)",
            "es": "Esta es una entrada por la que solo se puede entrar (pero no salir)"
          }
        },
        {
          "if": {
            "and": [
              "indoor=",
              "entrance=emergency"
            ]
          },
          "then": {
            "en": "This is emergency exit",
            "nl": "Dit is een nooduitgang",
            "de": "Dies ist ein Notausgang",
            "es": "Esta es una salida de emergencia"
          }
        },
        {
          "if": {
            "and": [
              "indoor=",
              "entrance=home"
            ]
          },
          "then": {
            "en": "This is the entrance to a private home",
            "nl": "Dit is de ingang van een private woning",
            "de": "Dies ist ein Eingang zu einem privaten Haus",
            "es": "Esta es la entrada a una vivienda privada"
          }
        }
      ]
    },
    {
      "id": "Door_type",
      "question": {
        "en": "What is the type of this door?<br/><span class='subtle'>Wether or not the door is automated is asked in the next question</span>",
        "nl": "Om wat voor deur gaat het?<br/><span class='subtle'>Of de deur al of niet automatisch werkt, vragen we hierna </span>",
        "de": "Welche Tür gibt es an diesem Eingang?<br/><span class='subtle'>Ob die Tür automatisiert ist oder nicht, wird in der nächsten Frage gefragt</span>",
        "es": "¿Cual es el tipo de esta puerta?<br/><span class='subtle'>Si la puerta está automatizada o no se pregunta en la siguiente pregunta</span>"
      },
      "mappings": [
        {
          "if": "door=yes",
          "then": {
            "en": "The door type is not known",
            "nl": "Het type deur is onbekend",
            "de": "Der Türtyp ist nicht bekannt",
            "es": "Se desconoce el tipo de puerta"
          },
          "hideInAnswer": true
        },
        {
          "if": "door=hinged",
          "then": {
            "en": "A classical, hinged door supported by joints",
            "nl": "Een gewone deur die aan scharnieren ophangt en openzwaait",
            "de": "Der Eingang hat eine normale Tür mit seitlichem Anschlag",
            "es": "Una puerta clásica, con bisagras soportadas por uniones"
          }
        },
        {
          "if": "door=revolving",
          "then": {
            "en": "A revolving door which hangs on a central shaft, rotating within a cylindrical enclosure",
            "nl": "Een tourniquet-deur (draaideur) die in een cylinder rond een centrale as draait",
            "de": "Der Eingang hat eine Karusselltür, die sich um ihre eigene Achse dreht",
            "es": "Una puerta giratoria que cuelga de un eje central y que rota dentro de una carcasa cilíndrica"
          }
        },
        {
          "if": "door=sliding",
          "then": {
            "en": "A sliding door where the door slides sidewards, typically parallel with a wall",
            "nl": "Een schuifdeur or roldeur die bij het openen en sluiten zijwaarts beweegt",
            "de": "Der Eingang hat eine Schiebetür, bei der sich die Tür zur Seite bewegt",
            "es": "Una puerta corredera donde las hojas se deslizan de lado a lado, típicamente con una pared"
          }
        },
        {
          "if": "door=overhead",
          "then": {
            "en": "A door which rolls from overhead, typically seen for garages",
            "nl": "Een poort die langs boven dichtrolt, typisch voor garages",
            "de": "Der Eingang hat ein Rolltor, das von oben nach unten rollt, typischerweise für Garagen"
          }
        },
        {
          "if": "door=no",
          "then": {
            "en": "This is an entrance without a physical door",
            "nl": "Er is een toegang zonder een deur",
            "de": "Der Eingang hat eine keine Tür",
            "es": "Esta es una entrada sin una puerta física"
          },
          "hideInAnswer": "entrance="
        }
      ]
    },
    {
      "id": "automatic_door",
      "question": "Is this door automated?",
      "condition": "door!=no",
      "mappings": [
        {
          "if": "automatic_door=yes",
          "then": {
            "en": "This is an automatic door",
            "nl": "Dit is een automatische deur",
            "de": "Dies ist eine Automatiktür",
            "es": "Esta es una puerta automática"
          },
          "hideInAnswer": true
        },
        {
          "if": "automatic_door=no",
          "then": {
            "en": "This door is <b>not</b> automated",
            "nl": "Deze deur is <b>niet</b> automatisch",
            "de": "Diese Tür ist <b>nicht</b> automatisiert",
            "es": "Esta puerta <b>no</b> está automatizada"
          }
        },
        {
          "if": "automatic_door=motion",
          "then": {
            "en": "This door will open automatically when <b>motion</b> is detected",
            "nl": "De deur gaat automatisch open wanneer er <b>beweging</b> wordt gedetecteerd",
            "de": "Diese Tür öffnet sich automatisch, wenn <b>Bewegung</b> erkannt wird",
            "es": "Esta puerta se abre automáticamente cuando se detecta <b>movimiento</b>"
          }
        },
        {
          "if": "automatic_door=floor",
          "then": {
            "en": "This door will open automatically when a <b>sensor in the floor</b> is triggered",
            "nl": "De deur gaat automatisch open wanneer <b>een sensor in de vloer</b> wordt geactiveerd",
            "de": "Diese Tür öffnet sich automatisch, wenn ein <b>Sensor im Boden</b> ausgelöst wird",
            "es": "Esta puerta se abre automáticamente cuando se activa un <b>sensor en el suelo</b>"
          }
        },
        {
          "if": "automatic_door=button",
          "then": {
            "en": "This door will open automatically when a <b>button is pressed</b>",
            "nl": "De deur gaat open wanneer <b>een knop wordt ingedrukt</b>",
            "de": "Diese Tür öffnet sich automatisch, wenn ein <b>Taster betätigt wird</b>",
            "es": "Esta puerta se abre automáticamente cuando se <b>pulsa un botón</b>"
          }
        },
        {
          "if": "automatic_door=slowdown_button",
          "then": {
            "en": "This door revolves automatically all the time, but has a <b>button to slow it down</b>, e.g. for wheelchair users",
            "nl": "De deur draait continue automatisch, maar heeft een <b>knop om te vertragen</b>, bijvoorbeeld voor rolstoelgebruikers",
            "de": "Diese Tür dreht sich durchgehend automatisch, hat aber einen<b>Knopf, um die Drehgeschwindigkeit zu reduzieren</b>, z.B. für Rollstuhlnutzer",
            "es": "Esta puerta gira automáticamente todo el rato, pero tiene un <b>botón para ralentizarla</b>, por ejemplo, para usuarios de sillas de ruedas"
          }
        },
        {
          "if": "automatic_door=continuous",
          "then": {
            "en": "This door revolves automatically all the time",
            "nl": "De deur draait continue automatisch",
            "de": "Diese Tür dreht sich durchgehend automatisch",
            "es": "Esta puerta gira automáticamente todo el rato"
          }
        },
        {
          "if": "automatic_door=serviced_on_button_press",
          "then": {
            "en": "This door will be opened by staff when requested by <b>pressing a button</b>",
            "nl": "De deur wordt geopend door personeel als je dat vraagt <b>door op een knop te duwen</b>",
            "de": "Diese Tür wird von Mitarbeitern geöffnet auf Anfrage <b>per Rufknopf</b>",
            "es": "Esta puerta la abre el personal cuando se pide <b>pulsando un botón</b>"
          }
        },
        {
          "if": "automatic_door=serviced_on_request",
          "then": {
            "en": "This door will be opened by staff when requested",
            "nl": "De deur wordt geopend door personeel wanneer je het vraagt",
            "de": "Diese Tür wird von Mitarbeitern geöffnet auf Anfrage",
            "es": "Esta puerta la abrirá el personal cuando se pida"
          }
        }
      ]
    },
    {
      "id": "width",
      "render": {
        "en": "This door has a width of {canonical(width)} meter",
        "nl": "Deze deur heeft een breedte van {canonical(width)} meter",
        "de": "Diese Tür hat eine Durchgangsbreite von {canonical(width)} Meter",
        "es": "Esta puerta tiene una ancho de {canonical(width)} metros"
      },
      "question": {
        "en": "What is the width of this door/entrance?",
        "nl": "Wat is de breedte van deze deur/toegang?",
        "de": "Wie breit ist diese Tür bzw. dieser Eingang?",
        "es": "¿Cual es el ancho de esta puerta/entrada?"
      },
      "freeform": {
        "key": "width",
        "type": "distance"
      }
    }
  ],
  "mapRendering": [
    {
      "location": [
        "point",
        "centroid"
      ],
      "icon": {
        "render": "circle:white;./assets/layers/entrance/door.svg",
        "mappings": [
          {
            "if": "entrance=emergency",
            "then": "circle:white;./assets/layers/entrance/emergency_door.svg"
          }
        ]
      }
    }
  ],
  "presets": [
    {
      "title": {
        "*": "entrance"
      },
      "preciseInput": {
        "preferredBackground": "photo",
        "snapToLayer": [
          "walls_and_buildings",
          "pedestrian_path"
        ]
      },
      "tags": [
        "entrance=yes"
      ]
    }
  ]
}