mapcomplete/assets/layers/ticket_validator/ticket_validator.json
2023-05-06 11:14:54 +02:00

126 lines
No EOL
3.6 KiB
JSON

{
"id": "ticket_validator",
"name": {
"en": "Ticket Validators",
"de": "Fahrkartenentwerter"
},
"description": {
"en": "Find ticket validators to validate public transport tickets",
"de": "Finden Sie Fahrkartenentwerter, um Tickets für den öffentlichen Nahverkehr zu entwerten"
},
"source": {
"osmTags": "amenity=ticket_validator"
},
"minzoom": 19,
"title": {
"render": {
"en": "Ticket Validator",
"de": "Fahrkartenentwerter"
}
},
"tagRenderings": [
"images",
"level",
{
"id": "barrier",
"condition": "barrier~*",
"render": {
"en": "This ticket validator is part of a barrier of type {barrier}",
"de": "Dieser Fahrkartenentwerter ist Teil einer Zugangsbarriere vom Typ {barrier}"
},
"mappings": [
{
"if": "barrier=gate",
"then": {
"en": "This ticket validator is part of a gate",
"de": "Dieser Fahrscheinentwerter ist Teil einer Zugangsbarriere"
}
}
]
},
{
"id": "validator-operator",
"question": {
"en": "Who is the operator of this ticket validator?",
"de": "Wer ist der Betreiber dieses Fahrkartenentwerters?"
},
"render": {
"en": "This ticket validator is operated by {operator}",
"de": "Dieser Fahrkartenentwerter wird betrieben von {operator}"
},
"freeform": {
"key": "operator",
"type": "string",
"placeholder": {
"en": "Name of the operator",
"de": "Name des Betreibers",
"nl": "Naam van de beheerder"
}
},
"mappings": [
{
"if": "operator=Nederlandse Spoorwegen",
"then": {
"en": "Dutch Railways (NS)",
"nl": "Nederlandse Spoorwegen (NS)",
"de": "Niederländische Eisenbahn (NS)"
},
"addExtraTags": [
"operator:wikidata=Q23076"
],
"hideInAnswer": "_country!=nl"
}
]
},
{
"builtin": "payment-options",
"override": {
"mappings+": [
{
"if": "payment:OV-Chipkaart=yes",
"ifnot": "payment:OV-Chipkaart=no",
"then": {
"en": "This ticket validator accepts OV-Chipkaart"
},
"hideInAnswer": true
},
{
"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",
"de": "einen Fahrkartenentwerter"
},
"description": {
"en": "A ticket validator to validate a public transport ticket. This can be either a digital reader, reading a card or ticket, or a machine stamping or punching a ticket.",
"de": "Ein Fahrkartenentwerter zur Entwertung einer Fahrkarte für öffentliche Verkehrsmittel. Dabei kann es sich entweder um ein digitales Lesegerät handeln, das eine Karte oder einen Fahrschein liest, oder um eine Maschine, die einen Fahrschein stempelt oder locht."
}
}
],
"mapRendering": [
{
"icon": "square:green;./assets/themes/stations/public_transport_tickets.svg",
"iconSize": "20,20,center",
"location": [
"point",
"centroid"
]
}
],
"allowMove":true,
"deletion":true
}