mapcomplete/assets/layers/ticket_validator/ticket_validator.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

96 lines
2.1 KiB
JSON
Raw Normal View History

2022-11-11 23:40:16 +01:00
{
"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",
2022-11-12 00:08:39 +01:00
{
"id": "barrier",
"condition": "barrier~*",
"render": {
"en": "This ticket validator is part of a barrier of type {barrier}"
},
"mappings": [
{
"if": "barrier=gate",
"then": {
"en": "This ticket validator is part of a gate"
}
}
]
},
2022-11-11 23:40:16 +01:00
{
"id": "validator-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"
},
2022-12-16 23:20:38 +01:00
"hideInAnswer": true
2022-11-12 00:08:39 +01:00
},
{
"if": "payment:ov-chipkaart=yes",
"ifnot": "payment:ov-chipkaart=no",
"then": {
"en": "This ticket validator accepts OV-Chipkaart"
},
2022-12-16 23:20:38 +01:00
"hideInAnswer": "_country!=nl"
2022-11-11 23:40:16 +01:00
}
]
}
}
],
"presets": [
{
"tags": [
"amenity=ticket_validator"
],
"title": {
"en": "a ticket validator"
}
}
],
"mapRendering": [
{
2022-11-12 00:02:38 +01:00
"icon": "square:green;./assets/themes/stations/public_transport_tickets.svg",
2022-11-11 23:40:16 +01:00
"iconSize": "20,20,center",
"location": [
"point",
"centroid"
]
}
]
}