{
  "id": "street_lamps",
  "name": {
    "en": "Street Lamps",
    "nl": "Straatlantaarns"
  },
  "source": {
    "osmTags": "highway=street_lamp"
  },
  "minZoom": 16,
  "title": {
    "render": {
      "en": "Street Lamp",
      "nl": "Straatlantaarn"
    },
    "mappings": [
      {
        "if": "ref~*",
        "then": {
          "en": "Street Lamp {ref}",
          "nl": "Straatlantaarn {ref}"
        }
      }
    ]
  },
  "mapRendering": [
    {
      "location": "point",
      "icon": "./assets/layers/street_lamps/street_lamp.svg",
      "iconBadges": [
        {
          "if": "light:colour~*",
          "then": "circle:{light:colour}"
        }
      ],
      "iconSize": "40,40,bottom"
    }
  ],
  "presets": [
    {
      "title": {
        "en": "street lamp",
        "nl": "straatlantaarn"
      },
      "tags": [
        "highway=street_lamp"
      ],
      "preciseInput": true
    }
  ],
  "tagRenderings": [
    {
      "id": "ref",
      "render": {
        "en": "This street lamp has the reference number {ref}",
        "nl": "Deze straatlantaarn heeft het nummer {ref}"
      },
      "question": {
        "en": "What is the reference number of this street lamp?",
        "nl": "Wat is het nummer van deze straatlantaarn?"
      },
      "freeform": {
        "key": "ref"
      }
    },
    {
      "id": "support",
      "question": {
        "en": "How is this street lamp mounted?",
        "nl": "Hoe is deze straatlantaarn gemonteerd?"
      },
      "mappings": [
        {
          "if": "support=catenary",
          "then": {
            "en": "This lamp is suspended using cables",
            "nl": "Deze lantaarn hangt aan kabels"
          }
        },
        {
          "if": "support=ceiling",
          "then": {
            "en": "This lamp is mounted on a ceiling",
            "nl": "Deze lantaarn hangt aan een plafond"
          }
        },
        {
          "if": "support=ground",
          "then": {
            "en": "This lamp is mounted in the ground",
            "nl": "Deze lantaarn zit in de grond"
          }
        },
        {
          "if": "support=pedestal",
          "then": {
            "en": "This lamp is mounted on a short pole (mostly < 1.5m)",
            "nl": "Deze lantaarn zit op een korte paal (meestal < 1.5m)"
          }
        },
        {
          "if": "support=pole",
          "then": {
            "en": "This lamp is mounted on a pole",
            "nl": "Deze lantaarn zit op een paal"
          }
        },
        {
          "if": "support=wall",
          "then": {
            "en": "This lamp is mounted directly to the wall",
            "nl": "Deze lantaarn hangt direct aan de muur"
          }
        },
        {
          "if": "support=wall_mount",
          "then": {
            "en": "This lamp is mounted to the wall using a metal bar",
            "nl": "Deze lantaarn hangt aan de muur met een metalen balk"
          }
        }
      ]
    },
    {
      "id": "lamp_mount",
      "question": {
        "en": "How is this lamp mounted to the pole?",
        "nl": "Hoe zit deze lantaarn aan de paal?"
      },
      "condition": "support=pole",
      "mappings": [
        {
          "if": "lamp_mount=straight_mast",
          "then": {
            "en": "This lamp sits atop of a straight mast",
            "nl": "Deze lantaarn zit boven op een rechte paal"
          }
        },
        {
          "if": "lamp_mount=bent_mast",
          "then": {
            "en": "This lamp sits at the end of a bent mast",
            "nl": "Deze lantaarn zit aan het eind van een gebogen paal"
          }
        }
      ]
    },
    {
      "id": "method",
      "question": {
        "en": "What kind of lighting does this lamp use?",
        "nl": "Wat voor verlichting gebruikt deze lantaarn?"
      },
      "mappings": [
        {
          "if": "light:method=electric",
          "then": {
            "en": "This lamp is lit electrically",
            "nl": "Deze lantaarn is elektrisch verlicht"
          },
          "hideInAnswer": true
        },
        {
          "if": "light:method=LED",
          "then": {
            "en": "This lamp uses LEDs",
            "nl": "Deze lantaarn gebruikt LEDs"
          }
        },
        {
          "if": "light:method=incandescent",
          "then": {
            "en": "This lamp uses incandescent lighting",
            "nl": "Deze lantaarn gebruikt gloeilampen"
          }
        },
        {
          "if": "light:method=halogen",
          "then": {
            "en": "This lamp uses halogen lighting",
            "nl": "Deze lantaarn gebruikt halogeen verlichting"
          }
        },
        {
          "if": "light:method=discharge",
          "then": {
            "en": "This lamp uses discharge lamps (unknown type)",
            "nl": "Deze lantaarn gebruikt gasontladingslampen (onbekend type)"
          }
        },
        {
          "if": "light:method=mercury",
          "then": {
            "en": "This lamp uses a mercury-vapour lamp (lightly blueish)",
            "nl": "Deze lantaarn gebruikt een kwiklamp (enigszins blauwachtig)"
          }
        },
        {
          "if": "light:method=metal-halide",
          "then": {
            "en": "This lamp uses metal-halide lamps (bright white)",
            "nl": "Deze lantaarn gebruikt metaalhalidelampen"
          }
        },
        {
          "if": "light:method=fluorescent",
          "then": {
            "en": "This lamp uses fluorescent lighting",
            "nl": "Deze lantaarn gebruikt fluorescentieverlichting (TL en spaarlamp)"
          }
        },
        {
          "if": "light:method=sodium",
          "then": {
            "en": "This lamp uses sodium lamps (unknown type)",
            "nl": "Deze lantaarn gebruikt natriumlampen (onbekend type)"
          }
        },
        {
          "if": "light:method=low_pressure_sodium",
          "then": {
            "en": "This lamp uses low pressure sodium lamps (monochrome orange)",
            "nl": "Deze lantaarn gebruikt lagedruknatriumlampen (monochroom oranje)"
          }
        },
        {
          "if": "light:method=high_pressure_sodium",
          "then": {
            "en": "This lamp uses high pressure sodium lamps (orange with white)",
            "nl": "Deze lantaarn gebruikt hogedruknatriumlampen (oranje met wit)"
          }
        },
        {
          "if": "light:method=gas",
          "then": {
            "en": "This lamp is lit using gas",
            "nl": "Deze lantaarn wordt verlicht met gas"
          }
        }
      ]
    },
    {
      "id": "colour",
      "question": {
        "en": "What colour light does this lamp emit?",
        "nl": "Wat voor kleur licht geeft deze lantaarn?"
      },
      "render": {
        "en": "This lamp emits {light:colour} light",
        "nl": "Deze lantaarn geeft {light:colour} licht"
      },
      "freeform": {
        "key": "light:colour",
        "type": "color"
      },
      "mappings": [
        {
          "if": "light:colour=white",
          "then": {
            "en": "This lamp emits white light",
            "nl": "Deze lantaarn geeft wit licht"
          }
        },
        {
          "if": "light:colour=green",
          "then": {
            "en": "This lamp emits green light",
            "nl": "Deze lantaarn geeft groen licht"
          }
        },
        {
          "if": "light:colour=orange",
          "then": {
            "en": "This lamp emits orange light",
            "nl": "Deze lantaarn geeft oranje licht"
          }
        }
      ]
    },
    {
      "id": "count",
      "render": {
        "en": "This lamp has {light:count} fixtures",
        "nl": "Deze lantaarn heeft {light:count} lampen"
      },
      "question": {
        "en": "How many fixtures does this light have?",
        "nl": "Hoeveel lampen heeft deze lantaarn?"
      },
      "condition": "support=pole",
      "freeform": {
        "key": "light:count",
        "type": "pnat"
      },
      "mappings": [
        {
          "if": "light:count=1",
          "then": {
            "en": "This lamp has 1 fixture",
            "nl": "Deze lantaarn heeft 1 lamp"
          }
        },
        {
          "if": "light:count=2",
          "then": {
            "en": "This lamp has 2 fixtures",
            "nl": "Deze lantaarn heeft 2 lampen"
          }
        }
      ]
    },
    {
      "id": "lit",
      "question": {
        "en": "When is this lamp lit?",
        "nl": "Wanneer is deze lantaarn verlicht?"
      },
      "mappings": [
        {
          "if": "light:lit=dusk-dawn",
          "then": {
            "en": "This lamp is lit at night",
            "nl": "Deze lantaarn is 's nachts verlicht"
          }
        },
        {
          "if": "light:lit=24/7",
          "then": {
            "en": "This lamp is lit 24/7",
            "nl": "Deze lantaarn is 24/7 verlicht"
          }
        },
        {
          "if": "light:lit=motion",
          "then": {
            "en": "This lamp is lit based on motion",
            "nl": "Deze lantaarn is verlicht op basis van beweging"
          }
        },
        {
          "if": "light:lit=demand",
          "then": {
            "en": "This lamp is lit based on demand (e.g. with a pushbutton)",
            "nl": "Deze lantaarn is verlicht op verzoek (bijv. met een drukknop)"
          }
        }
      ]
    },
    {
      "id": "direction",
      "render": {
        "en": "This lamp points towards {light:direction}",
        "nl": "Deze lantaarn is gericht naar {light:direction}"
      },
      "question": {
        "en": "Where does this lamp point to?",
        "nl": "Waar is deze lamp heengericht?"
      },
      "condition": "light:count=1",
      "freeform": {
        "key": "light:direction",
        "type": "direction"
      }
    }
  ],
  "deletion": true,
  "allowMove": {
    "enableImproveAccuracy": true,
    "enableRelocation": false
  }
}