{
  "id": "playground",
  "name": {
    "nl": "Speeltuinen",
    "en": "Playgrounds"
  },
  "minzoom": 13,
  "source": {
    "osmTags": {
      "and": [
        "leisure=playground",
        "playground!=forest"
      ]
    }
  },
  "description": {
    "nl": "Speeltuinen",
    "en": "Playgrounds"
  },
  "title": {
    "render": {
      "nl": "Speeltuin",
      "en": "Playground"
    },
    "mappings": [
      {
        "if": "name~*",
        "then": {
          "nl": "Speeltuin <i>{name}</i>",
          "en": "Playground <i>{name}</i>"
        }
      }
    ]
  },
  "tagRenderings": [
    "images",
    {
      "question": {
        "nl": "Wat is de ondergrond van deze speeltuin?<br/><i>Indien er verschillende ondergronden zijn, neem de meest voorkomende</i>",
        "en": "Which is the surface of this playground?<br/><i>If there are multiple, select the most occuring one</i>"
      },
      "render": {
        "nl": "De ondergrond is <b>{surface}</b>",
        "en": "The surface is <b>{surface}</b>"
      },
      "freeform": {
        "key": "surface"
      },
      "mappings": [
        {
          "if": "surface=grass",
          "then": {
            "nl": "De ondergrond is <b>gras</b>",
            "en": "The surface is <b>grass</b>"
          }
        },
        {
          "if": "surface=sand",
          "then": {
            "nl": "De ondergrond is <b>zand</b>",
            "en": "The surface is <b>sand</b>"
          }
        },
        {
          "if": "surface=woodchips",
          "then": {
            "nl": "De ondergrond bestaat uit <b>houtsnippers</b>",
            "en": "The surface consist of <b>woodchips</b>"
          }
        },
        {
          "if": "surface=paving_stones",
          "then": {
            "nl": "De ondergrond bestaat uit <b>stoeptegels</b>",
            "en": "The surface is <b>paving stones</b>"
          }
        },
        {
          "if": "surface=asphalt",
          "then": {
            "nl": "De ondergrond is <b>asfalt</b>",
            "en": "The surface is <b>asphalt</b>"
          }
        },
        {
          "if": "surface=concrete",
          "then": {
            "nl": "De ondergrond is <b>beton</b>",
            "en": "The surface is <b>concrete</b>"
          }
        },
        {
          "if": "surface=unpaved",
          "then": {
            "nl": "De ondergrond is <b>onverhard</b>",
            "en": "The surface is <b>unpaved</b>"
          },
          "hideInAnswer": true
        },
        {
          "if": "surface=paved",
          "then": {
            "nl": "De ondergrond is <b>verhard</b>",
            "en": "The surface is <b>paved</b>"
          },
          "hideInAnswer": true
        }
      ]
    },
    {
      "question": {
        "nl": "Is deze speeltuin 's nachts verlicht?",
        "en": "Is this playground lit at night?"
      },
      "mappings": [
        {
          "if": "lit=yes",
          "then": {
            "nl": "Deze speeltuin is 's nachts verlicht",
            "en": "This playground is lit at night"
          }
        },
        {
          "if": "lit=no",
          "then": {
            "nl": "Deze speeltuin is 's nachts niet verlicht",
            "en": "This playground is not lit at night"
          }
        }
      ]
    },
    {
      "render": {
        "nl": "Toegankelijk vanaf {min_age} jaar oud",
        "en": "Accessible to kids older then {min_age} years"
      },
      "question": {
        "nl": "Wat is de minimale leeftijd om op deze speeltuin te mogen?",
        "en": "What is the minimum age required to access this playground?"
      },
      "freeform": {
        "key": "min_age",
        "type": "pnat"
      }
    },
    {
      "render": {
        "nl": "Toegankelijk tot {max_age}",
        "en": "Accessible to kids of at most {max_age}"
      },
      "question": {
        "nl": "Wat is de maximaal toegestane leeftijd voor deze speeltuin?",
        "en": "What is the maximum age allowed to access this playground?"
      },
      "freeform": {
        "key": "max_age",
        "type": "pnat"
      }
    },
    {
      "question": {
        "nl": "Wie beheert deze speeltuin?",
        "en": "Who operates this playground?"
      },
      "render": {
        "nl": "Beheer door {operator}",
        "en": "Operated by {operator}"
      },
      "freeform": {
        "key": "operator"
      }
    },
    {
      "question": {
        "nl": "Is deze speeltuin vrij toegankelijk voor het publiek?",
        "en": "Is this playground accessible to the general public?"
      },
      "mappings": [
        {
          "if": "access=",
          "then": {
            "en": "Accessible to the general public",
            "nl": "Vrij toegankelijk voor het publiek"
          },
          "hideInAnswer": true
        },
        {
          "if": "access=yes",
          "then": {
            "en": "Accessible to the general public",
            "nl": "Vrij toegankelijk voor het publiek"
          }
        },
        {
          "if": "access=customers",
          "then": {
            "en": "Only accessible for clients of the operating business",
            "nl": "Enkel toegankelijk voor klanten van de bijhorende zaak"
          }
        },
        {
          "if": "access=students",
          "then": {
            "en": "Only accessible to studants of the school",
            "nl": "Vrij toegankelijk voor scholieren van de school"
          }
        },
        {
          "if": "access=private",
          "then": {
            "en": "Not accessible",
            "nl": "Niet vrij toegankelijk"
          }
        }
      ]
    },
    {
      "question": {
        "nl": "Wie kan men emailen indien er problemen zijn met de speeltuin?",
        "en": "What is the email address of the playground maintainer?"
      },
      "render": {
        "nl": "De bevoegde dienst kan bereikt worden via <a href='mailto:{email}'>{email}</a>",
        "en": "<a href='mailto:{email}'>{email}</a>"
      },
      "freeform": {
        "key": "email",
        "type": "email"
      }
    },
    {
      "question": {
        "nl": "Wie kan men bellen indien er problemen zijn met de speeltuin?",
        "en": "What is the phone number of the playground maintainer?"
      },
      "render": {
        "nl": "De bevoegde dienst kan getelefoneerd worden via <a href='tel:{phone}'>{phone}</a>",
        "en": "<a href='tel:{phone}'>{phone}</a>"
      },
      "freeform": {
        "key": "phone",
        "type": "phone"
      }
    },
    {
      "question": {
        "nl": "Is deze speeltuin toegankelijk voor rolstoelgebruikers?",
        "en": "Is this playground accessible to wheelchair users?"
      },
      "mappings": [
        {
          "if": "wheelchair=yes",
          "then": {
            "nl": "Geheel toegankelijk voor rolstoelgebruikers",
            "en": "Completely accessible for wheelchair users"
          }
        },
        {
          "if": "wheelchair=limited",
          "then": {
            "nl": "Beperkt toegankelijk voor rolstoelgebruikers",
            "en": "Limited accessibility for wheelchair users"
          }
        },
        {
          "if": "wheelchair=no",
          "then": {
            "nl": "Niet toegankelijk voor rolstoelgebruikers",
            "en": "Not accessible for wheelchair users"
          }
        }
      ]
    },
    {
      "freeform": {
        "key": "opening_hours",
        "type": "opening_hours"
      },
      "render": "{opening_hours_table(opening_hours)}",
      "question": {
        "nl": "Op welke uren is deze speeltuin toegankelijk?",
        "en": "When is this playground accessible?"
      },
      "mappings": [
        {
          "if": "opening_hours=sunrise-sunset",
          "then": {
            "nl": "Van zonsopgang tot zonsondergang",
            "en": "Accessible from sunrise till sunset"
          }
        },
        {
          "if": "opening_hours=24/7",
          "then": {
            "nl": "Dag en nacht toegankelijk",
            "en": "Always accessible"
          }
        },
        {
          "if": "opening_hours=",
          "then": {
            "nl": "Dag en nacht toegankelijk",
            "en": "Always accessible"
          },
          "hideInAnswer": true
        }
      ]
    },
    "questions",
    {
      "render": "{reviews(name, playground)}"
    }
  ],
  "hideUnderlayingFeaturesMinPercentage": 0,
  "icon": {
    "render": "https://upload.wikimedia.org/wikipedia/commons/0/00/Map_icons_by_Scott_de_Jonge_-_playground.svg"
  },
  "iconOverlays": [
    {
      "if": {
        "and": [
          "opening_hours!=24/7",
          "opening_hours~*"
        ]
      },
      "then": "isOpen",
      "badge": true
    }
  ],
  "width": {
    "render": "1"
  },
  "iconSize": {
    "render": "40,40,center"
  },
  "color": {
    "render": "#0c3"
  },
  "presets": [
    {
      "tags": [
        "leisure=playground"
      ],
      "title": {
        "nl": "Speeltuin"
      }
    }
  ],
  "wayHandling": 2
}