{
  "id": "bicycle_library",
  "name": {
    "en": "Bicycle library",
    "nl": "Fietsbibliotheek",
    "fr": "Vélothèque",
    "it": "Bici in prestito"
  },
  "minzoom": 8,
  "source": {
    "osmTags": "amenity=bicycle_library"
  },
  "title": {
    "render": {
      "en": "Bicycle library",
      "nl": "Fietsbibliotheek",
      "fr": "Vélothèque",
      "it": "Bici in prestito"
    },
    "mappings": [
      {
        "if": "name~*",
        "then": "<i>{name}</i>"
      }
    ]
  },
  "titleIcons": [
    {
      "condition": {
        "or": [
          "service:bicycle:pump=yes",
          "service:bicycle:pump=separate"
        ]
      },
      "render": "<img src='./assets/layers/bike_shop/pump.svg'/>"
    },
    "defaults"
  ],
  "description": {
    "en": "A facility where bicycles can be lent for longer period of times",
    "nl": "Een plaats waar men voor langere tijd een fiets kan lenen",
    "fr": "Un lieu où des vélos peuvent être empruntés pour un temps plus long",
    "hu": "Létesítmény, ahonnan kerékpár kölcsönözhető hosszabb időre",
    "it": "Una struttura dove le biciclette possono essere prestate per periodi di tempo più lunghi"
  },
  "tagRenderings": [
    "images",
    {
      "question": {
        "en": "What is the name of this bicycle library?",
        "nl": "Wat is de naam van deze fietsbieb?",
        "fr": "Quel est le nom de cette vélothèque ?",
        "it": "Qual è il nome di questo “bici in prestito”?"
      },
      "render": {
        "en": "This bicycle library is called {name}",
        "nl": "Deze fietsbieb heet {name}",
        "fr": "Cette vélothèque s'appelle {name}",
        "it": "Il “bici in prestito” è chiamato {name}"
      },
      "freeform": {
        "key": "name"
      }
    },
    "website",
    "phone",
    "email",
    "opening_hours",
    {
      "question": {
        "en": "How much does lending a bicycle cost?",
        "nl": "Hoeveel kost het huren van een fiets?",
        "fr": "Combien coûte l'emprunt d'un vélo ?",
        "hu": "Mennyibe kerül egy kerékpár kölcsönzése?",
        "it": "Quanto costa il prestito di una bicicletta?",
        "ru": "Сколько стоит прокат велосипеда?"
      },
      "render": {
        "en": "Lending a bicycle costs {charge}",
        "nl": "Een fiets huren kost {charge}",
        "fr": "Emprunter un vélo coûte {charge}",
        "hu": "Egy kerékpár kölcsönzése {charge}",
        "it": "Il prestito di una bicicletta costa {charge}",
        "ru": "Стоимость аренды велосипеда {charge}"
      },
      "freeform": {
        "key": "charge",
        "addExtraTags": [
          "fee=yes"
        ]
      },
      "mappings": [
        {
          "if": {
            "and": [
              "fee=no",
              "charge="
            ]
          },
          "then": {
            "en": "Lending a bicycle is free",
            "nl": "Een fiets huren is gratis",
            "fr": "L'emprunt de vélo est gratuit",
            "hu": "A kerékpárkölcsönzés ingyenes",
            "it": "Il prestito di una bicicletta è gratuito"
          }
        },
        {
          "if": {
            "and": [
              "fee=yes",
              "charge=€20warranty + €20/year"
            ]
          },
          "then": {
            "en": "Lending a bicycle costs €20/year and €20 warranty",
            "nl": "Een fiets huren kost €20/jaar en €20 waarborg",
            "fr": "Emprunter un vélo coûte 20€/an et 20€ de garantie",
            "it": "Il prestito di una bicicletta costa 20€/anno più 20€ di garanzia"
          }
        }
      ]
    },
    {
      "question": {
        "en": "Who can lend bicycles here?",
        "nl": "Voor wie worden hier fietsen aangeboden?",
        "fr": "Qui peut emprunter des vélos ici ?",
        "hu": "Ki kölcsönözhet itt kerékpárt?",
        "it": "Chi può prendere in prestito le biciclette qua?"
      },
      "multiAnswer": true,
      "mappings": [
        {
          "if": "bicycle_library:for=child",
          "then": {
            "nl": "Aanbod voor kinderen",
            "en": "Bikes for children available",
            "fr": "Vélos pour enfants disponibles",
            "hu": "",
            "it": "Sono disponibili biciclette per bambini"
          }
        },
        {
          "if": "bicycle_library:for=adult",
          "then": {
            "nl": "Aanbod voor volwassenen",
            "en": "Bikes for adult available",
            "fr": "Vélos pour adultes disponibles",
            "it": "Sono disponibili biciclette per adulti"
          }
        },
        {
          "if": "bicycle_library:for=disabled",
          "then": {
            "nl": "Aanbod voor personen met een handicap",
            "en": "Bikes for disabled persons available",
            "fr": "Vélos pour personnes handicapées disponibles",
            "it": "Sono disponibili biciclette per disabili"
          }
        }
      ]
    },
    "description"
  ],
  "hideUnderlayingFeaturesMinPercentage": 1,
  "presets": [
    {
      "title": {
        "en": "Fietsbibliotheek",
        "nl": "Bicycle library"
      },
      "tags": [
        "amenity=bicycle_library"
      ],
      "description": {
        "nl": "Een fietsbieb heeft een collectie fietsen die leden mogen lenen",
        "en": "A bicycle library has a collection of bikes which can be lent",
        "fr": "Une vélothèque a une collection de vélos qui peuvent être empruntés",
        "it": "Una “ciclo-teca” o “bici in prestito” (‘bicycle library’ in inglese) ha una collezione di bici che possno essere prestate"
      }
    }
  ],
  "icon": {
    "render": "pin:#22ff55;./assets/layers/bicycle_library/bicycle_library.svg"
  },
  "iconOverlays": [
    {
      "if": "opening_hours~*",
      "then": "isOpen",
      "badge": true
    },
    {
      "if": "service:bicycle:pump=yes",
      "then": "circle:#e2783d;./assets/layers/bike_repair_station/pump.svg",
      "badge": true
    }
  ],
  "width": {
    "render": "1"
  },
  "iconSize": {
    "render": "50,50,bottom"
  },
  "color": {
    "render": "#c00"
  },
  "wayHandling": 2
}