forked from MapComplete/MapComplete
Added ticket validators
This commit is contained in:
parent
5b4f311b22
commit
75dcca69f0
1 changed files with 77 additions and 3 deletions
|
@ -184,7 +184,8 @@
|
|||
"en": "Name of the operator"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"payment-options"
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
|
@ -199,7 +200,80 @@
|
|||
],
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "circle:white;./assets/themes/stations/public_transport_tickets.svg",
|
||||
"icon": "circle:blue;./assets/themes/stations/public_transport_tickets.svg",
|
||||
"iconSize": "20,20,center",
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ticket_validator",
|
||||
"name": {
|
||||
"en": "Ticket Validators"
|
||||
},
|
||||
"description": {
|
||||
"en": "Find ticket validators to validate public transport tickets"
|
||||
},
|
||||
"source": {
|
||||
"osmTags": "amenity=ticket_validator"
|
||||
},
|
||||
"minzoom": 19,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Ticket Validator"
|
||||
}
|
||||
},
|
||||
"tagRenderings": [
|
||||
"images",
|
||||
"level",
|
||||
{
|
||||
"id": "operator",
|
||||
"question": {
|
||||
"en": "Who is the operator of this ticket validator?"
|
||||
},
|
||||
"render": {
|
||||
"en": "This ticket validator is operated by {operator}"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "operator",
|
||||
"type": "string",
|
||||
"placeholder": {
|
||||
"en": "Name of the operator"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"builtin": "payment-options",
|
||||
"override": {
|
||||
"mappings+": [
|
||||
{
|
||||
"if": "payment:OV-Chipkaart=yes",
|
||||
"ifnot": "payment:OV-Chipkaart=no",
|
||||
"then": {
|
||||
"en": "This ticket validator accepts OV-Chipkaart"
|
||||
},
|
||||
"hideInAnswer": "_country!=nl"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"presets": [
|
||||
{
|
||||
"tags": [
|
||||
"amenity=ticket_validator"
|
||||
],
|
||||
"title": {
|
||||
"en": "a ticket validator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"mapRendering": [
|
||||
{
|
||||
"icon": "circle:green;./assets/themes/stations/public_transport_tickets.svg",
|
||||
"iconSize": "20,20,center",
|
||||
"location": [
|
||||
"point",
|
||||
|
@ -301,4 +375,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue