192 lines
4.6 KiB
JSON
192 lines
4.6 KiB
JSON
{
|
|
"id": "bicycle_tube_vending_machine",
|
|
"name": {
|
|
"en": "Bicycle tube vending machine"
|
|
},
|
|
"title": {
|
|
"render": {
|
|
"en": "Bicycle tube vending machine"
|
|
},
|
|
"mappings": [
|
|
{
|
|
"if": "name~*",
|
|
"then": "Bicycle tube vending machine {name}"
|
|
}
|
|
]
|
|
},
|
|
"titleIcons": [
|
|
{
|
|
"render": "<a href='https://fietsambassade.gent.be/' target='_blank'><img src='./assets/themes/cyclofix/fietsambassade_gent_logo_small.svg'/></a>",
|
|
"condition": "operator=De Fietsambassade Gent"
|
|
},
|
|
"defaults"
|
|
],
|
|
"icon": {
|
|
"render": "pin:#ffffff;./assets/layers/bicycle_tube_vending_machine/pinIcon.svg"
|
|
},
|
|
"iconOverlays": [
|
|
{
|
|
"if": {
|
|
"or": [
|
|
"operational_status=broken",
|
|
"operational_status=closed"
|
|
]
|
|
},
|
|
"then": "close:#c33",
|
|
"badge": true
|
|
}
|
|
],
|
|
"iconSize": "50,50,bottom",
|
|
"source": {
|
|
"osmTags": {
|
|
"and": [
|
|
"amenity=vending_machine",
|
|
"vending~.*bicycle_tube.*"
|
|
]
|
|
}
|
|
},
|
|
"minzoom": 13,
|
|
"wayHandling": 2,
|
|
"presets": [
|
|
{
|
|
"title": {
|
|
"en": "Bicycle tube vending machine"
|
|
},
|
|
"tags": [
|
|
"amenity=vending_machine",
|
|
"vending=bicycle_tube",
|
|
"vending:bicycle_tube=yes"
|
|
]
|
|
}
|
|
],
|
|
"color": "#6bc4f7",
|
|
"tagRenderings": [
|
|
"images",
|
|
{
|
|
"#": "Still in use?",
|
|
"question": {
|
|
"en": "Is this vending machine still operational?"
|
|
},
|
|
"render": {
|
|
"en": "The operational status is <i>{operational_status</i>"
|
|
},
|
|
"freeform": {
|
|
"key": "operational_status"
|
|
},
|
|
"mappings": [
|
|
{
|
|
"if": "operational_status=",
|
|
"then": {
|
|
"en": "This vending machine works"
|
|
}
|
|
},
|
|
{
|
|
"if": "operational_status=broken",
|
|
"then": {
|
|
"en": "This vending machine is broken"
|
|
}
|
|
},
|
|
{
|
|
"if": "operational_status=closed",
|
|
"then": {
|
|
"en": "This vending machine is closed"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"question": "How much does a bicycle tube cost?",
|
|
"render": "A bicycle tube costs {charge}",
|
|
"freeform": {
|
|
"key": "charge"
|
|
}
|
|
},
|
|
{
|
|
"question": "How can one pay at this tube vending machine?",
|
|
"mappings": [
|
|
{
|
|
"if": "payment:coins=yes",
|
|
"ifnot": "payment:coins=no",
|
|
"then": "Payment with coins is possible"
|
|
},
|
|
{
|
|
"if": "payment:notes=yes",
|
|
"ifnot": "payment:notes=no",
|
|
"then": "Payment with notes is possible"
|
|
},
|
|
{
|
|
"if": "payment:cards=yes",
|
|
"ifnot": "payment:cards=no",
|
|
"then": "Payment with cards is possible"
|
|
}
|
|
],
|
|
"multiAnswer": true
|
|
},
|
|
{
|
|
"question": "Which brand of tubes are sold here?",
|
|
"freeform": {
|
|
"key": "brand"
|
|
},
|
|
"render": "{brand} tubes are sold here",
|
|
"mappings": [
|
|
{
|
|
"if": "brand=Continental",
|
|
"then": "Continental tubes are sold here"
|
|
},
|
|
{
|
|
"if": "brand=Schwalbe",
|
|
"then": "Schwalbe tubes are sold here"
|
|
}
|
|
],
|
|
"multiAnswer": true
|
|
},
|
|
{
|
|
"question": "Who maintains this vending machine?",
|
|
"render": "This vending machine is maintained by {operator}",
|
|
"mappings": [
|
|
{
|
|
"if": "operator=Schwalbe",
|
|
"then": "Maintained by Schwalbe"
|
|
},
|
|
{
|
|
"if": "operator=Continental",
|
|
"then": "Maintained by Continental"
|
|
}
|
|
],
|
|
"freeform": {
|
|
"key": "operator"
|
|
}
|
|
},
|
|
{
|
|
"question": "Are other bicycle bicycle accessories sold here?",
|
|
"mappings": [
|
|
{
|
|
"if": "vending:bicycle_light=yes",
|
|
"ifnot": "vending:bicycle_light=no",
|
|
"then": "Bicycle lights are sold here"
|
|
},
|
|
{
|
|
"if": "vending:gloves=yes",
|
|
"ifnot": "vending:gloves=no",
|
|
"then": "Gloves are sold here"
|
|
},
|
|
{
|
|
"if": "vending:bicycle_repair_kit=yes",
|
|
"ifnot": "vending:bicycle_repair_kit=no",
|
|
"then": "Bicycle repair kits are sold here"
|
|
},
|
|
{
|
|
"if": "vending:bicycle_pump=yes",
|
|
"ifnot": "vending:bicycle_pump=no",
|
|
"then": "Bicycle pumps are sold here"
|
|
},
|
|
{
|
|
"if": "vending:bicycle_lock=yes",
|
|
"ifnot": "vending:bicycle_lock=no",
|
|
"then": "Bicycle locks are sold here"
|
|
}
|
|
],
|
|
"multiAnswer": true
|
|
}
|
|
]
|
|
}
|