{
  "id": "toilet",
  "name": {
    "en": "Toilets",
    "de": "Toiletten",
    "fr": "Toilettes"
  },
  "source": {
    "osmTags": "amenity=toilets"
  },
  "title": {
    "render": {
      "en": "Toilet",
      "de": "Toilette",
      "fr": "Toilettes"
    }
  },
  "icon": {
    "render": "./assets/layers/toilet/toilets.svg",
    "mappings": [
      {
        "if": "wheelchair=yes",
        "then": "./assets/layers/toilet/wheelchair.svg"
      },
      {
        "if": "toilets:position=urinals",
        "then": "./assets/layers/toilet/urinal.svg"
      }
    ]
  },
  "color": {
    "render": "#0000ff"
  },
  "minzoom": 12,
  "wayHandling": 2,
  "presets": [
    {
      "title": {
        "en": "Toilet",
        "de": "Toilette",
        "fr": "Toilettes"
      },
      "tags": [
        "amenity=toilets"
      ],
      "description": {
        "en": "A publicly accessible toilet or restroom",
        "de": "Eine öffentlich zugängliche Toilette",
        "fr": "Des toilettes"
      }
    },
    {
      "title": {
        "en": "Toilets with wheelchair accessible toilet",
        "de": "Toiletten mit rollstuhlgerechter Toilette",
        "fr": "Toilettes accessible aux personnes à mobilité réduite"
      },
      "tags": [
        "amenity=toilets",
        "wheelchair=yes"
      ],
      "description": {
        "en": "A restroom which has at least one wheelchair-accessible toilet",
        "de": "Eine Toilettenanlage mit mindestens einer rollstuhlgerechten Toilette",
        "fr": "Toilettes avec au moins un WC accessible aux personnes à mobilité réduite"
      }
    }
  ],
  "tagRenderings": [
    "images",
    {
      "question": {
        "en": "Are these toilets publicly accessible?",
        "de": "Sind diese Toiletten öffentlich zugänglich?",
        "fr": "Ces toilettes sont-elles accessibles publiquement ?"
      },
      "render": {
        "en": "Access is {access}",
        "de": "Zugang ist {access}",
        "fr": "L'accès est {access}"
      },
      "freeform": {
        "key": "access",
        "addExtraTags": [
          "fixme=the tag access was filled out by the user and might need refinement"
        ]
      },
      "mappings": [
        {
          "if": "access=yes",
          "then": {
            "en": "Public access",
            "de": "Öffentlicher Zugang",
            "fr": "Accès publique"
          }
        },
        {
          "if": "access=customers",
          "then": {
            "en": "Only access to customers",
            "de": "Nur Zugang für Kunden",
            "fr": "Accès réservé aux clients"
          }
        },
        {
          "if": "access=no",
          "then": {
            "en": "Not accessible",
            "de": "Nicht zugänglich",
            "fr": "WC privés"
          }
        },
        {
          "if": "access=key",
          "then": {
            "en": "Accessible, but one has to ask a key to enter",
            "de": "Zugänglich, aber man muss einen Schlüssel für die Eingabe verlangen",
            "fr": "Accessible, mais vous devez demander la clé"
          }
        }
      ]
    },
    {
      "question": {
        "en": "Are these toilets free to use?",
        "de": "Können diese Toiletten kostenlos benutzt werden?",
        "fr": "Ces toilettes sont-elles payantes"
      },
      "mappings": [
        {
          "then": {
            "en": "These are paid toilets",
            "de": "Dies sind bezahlte Toiletten",
            "fr": "Toilettes payantes"
          },
          "if": "fee=yes"
        },
        {
          "if": "fee=no",
          "then": {
            "en": "Free to use",
            "de": "Kostenlose Nutzung",
            "fr": "Toilettes gratuites"
          }
        }
      ]
    },
    {
      "question": {
        "en": "How much does one have to pay for these toilets?",
        "de": "Wie viel muss man für diese Toiletten bezahlen?",
        "fr": "Quel est le prix d'accès de ces toilettes ?"
      },
      "render": {
        "en": "The fee is {charge}",
        "de": "Die Gebühr beträgt {charge}",
        "fr": "Le prix est {charge}"
      },
      "condition": "fee=yes",
      "freeform": {
        "key": "charge",
        "type": "string"
      }
    },
    {
      "question": {
        "en": "Is there a dedicated toilet for wheelchair users",
        "de": "Gibt es eine Toilette für Rollstuhlfahrer?",
        "fr": "Un WC réservé aux personnes à mobilité réduite est-il présent ?"
      },
      "mappings": [
        {
          "then": {
            "en": "There is a dedicated toilet for wheelchair users",
            "de": "Es gibt eine Toilette für Rollstuhlfahrer",
            "fr": "Il y a un WC réservé pour les personnes à mobilité réduite"
          },
          "if": "wheelchair=yes"
        },
        {
          "if": "wheelchair=no",
          "then": {
            "en": "No wheelchair access",
            "de": "Kein Zugang für Rollstuhlfahrer",
            "fr": "Non accessible aux personnes à mobilité réduite"
          }
        }
      ]
    },
    {
      "question": {
        "en": "Which kind of toilets are this?",
        "de": "Welche Art von Toiletten sind das?",
        "fr": "De quel type sont ces toilettes ?"
      },
      "mappings": [
        {
          "if": "toilets:position=seated",
          "then": {
            "en": "There are only seated toilets",
            "de": "Es gibt nur Sitztoiletten",
            "fr": "Il y a uniquement des WC assis"
          }
        },
        {
          "if": "toilets:position=urinals",
          "then": {
            "en": "There are only urinals here",
            "de": "Hier gibt es nur Pissoirs",
            "fr": "Il y a uniquement des urinoirs"
          }
        },
        {
          "if": "toilets:position=squat",
          "then": {
            "en": "There are only squat toilets here",
            "de": "Es gibt hier nur Hocktoiletten.",
            "fr": "Il y a uniquement des WC turques"
          }
        },
        {
          "if": "toilets:position=seated;urinals",
          "then": {
            "en": "Both seated toilets and urinals are available here",
            "de": "Sowohl Sitztoiletten als auch Pissoirs sind hier verfügbar",
            "fr": "Il y a des WC assis et des urinoirs"
          }
        }
      ]
    },
    {
      "question": {
        "en": "Is a changing table (to change diapers) available?",
        "de": "Ist ein Wickeltisch (zum Wechseln der Windeln) vorhanden?",
        "fr": "Ces WC disposent-ils d'une table à langer ?"
      },
      "mappings": [
        {
          "then": {
            "en": "A changing table is available",
            "de": "Ein Wickeltisch ist verfügbar",
            "fr": "Une table à langer est disponible"
          },
          "if": "changing_table=yes"
        },
        {
          "if": "changing_table=no",
          "then": {
            "en": "No changing table is available",
            "de": "Es ist kein Wickeltisch verfügbar",
            "fr": "Aucune table à langer"
          }
        }
      ]
    },
    {
      "question": {
        "en": "Where is the changing table located?",
        "de": "Wo befindet sich der Wickeltisch?",
        "fr": "Où se situe la table à langer ?"
      },
      "render": {
        "en": "The changing table is located at {changing_table:location}",
        "de": "Die Wickeltabelle befindet sich in {changing_table:location}",
        "fr": "Emplacement de la table à langer : {changing_table:location}"
      },
      "condition": "changing_table=yes",
      "freeform": {
        "key": "changing_table:location"
      },
      "mappings": [
        {
          "then": {
            "en": "The changing table is in the toilet for women. ",
            "de": "Der Wickeltisch befindet sich in der Damentoilette. ",
            "fr": "La table à langer se situe dans les WC pour femmes. "
          },
          "if": "changing_table:location=female_toilet"
        },
        {
          "then": {
            "en": "The changing table is in the toilet for men. ",
            "de": "Der Wickeltisch befindet sich in der Herrentoilette. ",
            "fr": "La table à langer se situe dans les WC pour hommes. "
          },
          "if": "changing_table:location=male_toilet"
        },
        {
          "if": "changing_table:location=wheelchair_toilet",
          "then": {
            "en": "The changing table is in the toilet for wheelchair users. ",
            "de": "Der Wickeltisch befindet sich in der Toilette für Rollstuhlfahrer. ",
            "fr": "La table à langer se situe dans les WC pour personnes à mobilité réduite. "
          }
        },
        {
          "if": "changing_table:location=dedicated_room",
          "then": {
            "en": "The changing table is in a dedicated room. ",
            "de": "Der Wickeltisch befindet sich in einem eigenen Raum. ",
            "fr": "La table à langer se situe dans un espace dédié. "
          }
        }
      ]
    }
  ]
}