{
  "id": "bicycle_counter",
  "name": {
    "en": "Bicycle counters",
    "cs": "Počítadla jízdních kol",
    "de": "Fahrradzählstellen",
    "es": "Contadores de bicicletas"
  },
  "description": {
    "en": "Layer showing monitoring stations for bicycle traffic",
    "nl": "Automatische fietstelpunten",
    "cs": "Vrstva zobrazující monitorovací stanice pro cyklistickou dopravu",
    "de": "Ebene mit Messstationen für den Fahrradverkehr",
    "es": "Capa que muestra las estaciones de seguimiento para el tráfico de bicicletas"
  },
  "source": {
    "osmTags": {
      "and": [
        "man_made=monitoring_station",
        "monitoring:bicycle=yes"
      ]
    }
  },
  "title": {
    "render": {
      "en": "Bicycle counter",
      "de": "Fahrradzählstelle",
      "cs": "Počítadlo jízdních kol"
    }
  },
  "tagRenderings": [
    "images",
    {
      "id": "display",
      "question": {
        "en": "Does this bicycle counter have a display showing the number of passing bicycles?",
        "cs": "Má tento počítač jízdních kol displej zobrazující počet projíždějících jízdních kol?",
        "de": "Zeigt die Fahrradzählstelle die Anzahl gezählter Fahrräder an?"
      },
      "mappings": [
        {
          "if": "display=digital",
          "then": {
            "en": "This counter has a digital display",
            "cs": "Toto počítadlo má digitální displej",
            "de": "Die Zählstelle hat eine digitale Anzeige"
          }
        },
        {
          "if": "display=analog",
          "then": {
            "en": "This counter has an analog display",
            "cs": "Toto počítadlo má analogový displej",
            "de": "Die Zählstelle hat eine analoge Anzeige"
          }
        },
        {
          "if": "display=no",
          "then": {
            "en": "This counter has no display",
            "cs": "Toto počítadlo nemá žádný displej",
            "de": "Die Zählstelle hat keine Anzeige"
          }
        }
      ]
    },
    {
      "id": "name",
      "question": {
        "en": "What is the name of the counted location?",
        "cs": "Jak se jmenuje započítávaná lokalita?",
        "de": "Wie lautet der Name des Zählorts?"
      },
      "freeform": {
        "key": "name",
        "type": "string",
        "placeholder": {
          "en": "Name of the counted location",
          "cs": "Název započítávané lokality",
          "de": "Name des Zählorts"
        }
      },
      "render": {
        "en": "Name of the counted location: {name}",
        "de": "Name des Zählorts: {name}",
        "cs": "Název započítávaného místa: {name}"
      }
    },
    {
      "id": "start_date",
      "question": {
        "en": "When did this counter start counting?",
        "de": "Wann wurde die Zählstelle aufgestellt?",
        "cs": "Kdy toto počítadlo začalo počítat?"
      },
      "freeform": {
        "key": "start_date",
        "type": "date",
        "placeholder": {
          "en": "Start date of the counter",
          "de": "Aufstelldatum der Zählstelle",
          "cs": "Datum spuštění počítadla"
        }
      },
      "render": {
        "en": "This counter started counting on {start_date}",
        "de": "Die Zählstelle wurde am {start_date} aufgestellt",
        "cs": "Toto počítadlo se začalo počítat dne {start_date}"
      }
    },
    {
      "id": "clock",
      "question": {
        "en": "Does this bicycle counter have a clock?",
        "cs": "Má toto počítadlo kol hodiny?",
        "de": "Zeigt die Fahrradzählstelle die Uhrzeit an?"
      },
      "mappings": [
        {
          "if": "amenity=clock",
          "then": {
            "en": "This counter has a clock",
            "cs": "Toto počítadlo je vybaveno hodinami",
            "de": "Die Zählstelle zeigt die Uhrzeit an"
          }
        },
        {
          "if": "amenity=",
          "then": {
            "en": "This counter has no clock",
            "cs": "Toto počítadlo nemá žádné hodiny",
            "de": "Die Zählstelle zeigt keine Uhrzeit an"
          }
        }
      ]
    },
    {
      "id": "ref",
      "question": {
        "en": "What is the reference number of this counter?",
        "de": "Wie lautet die Kennziffer der Zählstelle?",
        "cs": "Jaké je referenční číslo tohoto počítadla?"
      },
      "freeform": {
        "key": "ref",
        "type": "string",
        "placeholder": {
          "en": "Reference number of the counter",
          "de": "Kennziffer der Zählstelle",
          "cs": "Referenční číslo počítadla"
        },
        "addExtraTags": [
          "noref="
        ]
      },
      "render": {
        "en": "Reference number of the counter: {ref}",
        "de": "Kennziffer der Zählstelle: {ref}",
        "cs": "Referenční číslo počítadla: {ref}"
      },
      "mappings": [
        {
          "if": "noref=yes",
          "then": {
            "en": "This counter has no reference number",
            "de": "Die Zählstelle hat keine Kennziffer",
            "cs": "Toto počítadlo nemá referenční číslo"
          }
        }
      ]
    },
    {
      "id": "website",
      "question": {
        "en": "Is there a website for this bicycle counter?",
        "de": "Gibt es eine Website für die Fahrradzählstelle?",
        "cs": "Existuje webová stránka tohoto počítadla jízdních kol?"
      },
      "freeform": {
        "key": "website",
        "type": "url",
        "placeholder": {
          "en": "Website of the counter",
          "de": "Website der Zählstelle",
          "cs": "Webové stránky počítadla"
        }
      },
      "render": {
        "en": "Website of the counter: <a href='{website}'>{website}</a>",
        "de": "Website der Zählstelle: <a href='{website}'>{website}</a>",
        "cs": "Webové stránky počítadla: <a href='{website}'>{web}</a>"
      }
    }
  ],
  "pointRendering": [
    {
      "marker": [
        {
          "icon": "pin",
          "color": "#538EE8"
        },
        {
          "icon": "./assets/layers/bicycle_counter/bicycle_monitoring_station.svg"
        }
      ],
      "location": [
        "point",
        "centroid"
      ],
      "anchor": "bottom"
    }
  ],
  "minzoom": 13,
  "allowMove": {
    "enableImproveAccuracy": true
  },
  "deletion": true,
  "presets": [
    {
      "title": {
        "en": "a bicycle counter",
        "cs": "počítadlo jízdních kol",
        "de": "eine Fahrradzählstelle",
        "es": "un contador de bicicletas"
      },
      "tags": [
        "man_made=monitoring_station",
        "monitoring:bicycle=yes"
      ]
    }
  ]
}