diff --git a/assets/themes/stations/stations.json b/assets/themes/stations/stations.json index c25f215f3..93d516fd2 100644 --- a/assets/themes/stations/stations.json +++ b/assets/themes/stations/stations.json @@ -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 @@ ] } ] -} +} \ No newline at end of file