{
  "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 monitoreo del 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",
      "es": "Contador de bicicletas"
    }
  },
  "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?",
        "es": "¿Este contador de bicicletas tiene una pantalla que muestra el número de bicicletas que pasan?"
      },
      "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",
            "es": "Este contador tiene una pantalla digital"
          }
        },
        {
          "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",
            "es": "Este contador tiene una pantalla analógica"
          }
        },
        {
          "if": "display=no",
          "then": {
            "en": "This counter has no display",
            "cs": "Toto počítadlo nemá žádný displej",
            "de": "Die Zählstelle hat keine Anzeige",
            "es": "Este contador no tiene pantalla"
          }
        }
      ]
    },
    {
      "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?",
        "es": "¿Cuál es el nombre del lugar contado?"
      },
      "freeform": {
        "key": "name",
        "type": "string",
        "placeholder": {
          "en": "Name of the counted location",
          "cs": "Název započítávané lokality",
          "de": "Name des Zählorts",
          "es": "Nombre del lugar contado"
        }
      },
      "render": {
        "en": "Name of the counted location: {name}",
        "de": "Name des Zählorts: {name}",
        "cs": "Název započítávaného místa: {name}",
        "es": "Nombre del lugar contado: {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?",
        "es": "¿Cuándo comenzó a contar este contador?"
      },
      "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",
          "es": "Fecha de inicio del contador"
        }
      },
      "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}",
        "es": "Este contador comenzó a contar el {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?",
        "es": "¿Este contador de bicicletas tiene un reloj?"
      },
      "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",
            "es": "Este contador tiene un reloj"
          }
        },
        {
          "if": "amenity=",
          "then": {
            "en": "This counter has no clock",
            "cs": "Toto počítadlo nemá žádné hodiny",
            "de": "Die Zählstelle zeigt keine Uhrzeit an",
            "es": "Este contador no tiene reloj"
          }
        }
      ]
    },
    {
      "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?",
        "es": "¿Cuál es el número de referencia de este contador?"
      },
      "freeform": {
        "key": "ref",
        "type": "string",
        "placeholder": {
          "en": "Reference number of the counter",
          "de": "Kennziffer der Zählstelle",
          "cs": "Referenční číslo počítadla",
          "es": "Número de referencia del contador"
        },
        "addExtraTags": [
          "noref="
        ]
      },
      "render": {
        "en": "Reference number of the counter: {ref}",
        "de": "Kennziffer der Zählstelle: {ref}",
        "cs": "Referenční číslo počítadla: {ref}",
        "es": "Número de referencia del contador: {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",
            "es": "Este contador no tiene número de referencia"
          }
        }
      ]
    },
    {
      "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?",
        "es": "¿Hay un sitio web para este contador de bicicletas?",
        "uk": "Є веб-сайт для цього велосипедного прилавка?"
      },
      "freeform": {
        "key": "website",
        "type": "url",
        "placeholder": {
          "en": "Website of the counter",
          "de": "Website der Zählstelle",
          "cs": "Webové stránky počítadla",
          "es": "Sitio web del contador",
          "uk": "Сайт лічильника"
        }
      },
      "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}'>{website}</a>",
        "es": "Sitio web del contador: <a href='{website}'>{website}</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"
      ]
    }
  ]
}