mapcomplete/assets/layers/transit_stops/transit_stops.json

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

390 lines
11 KiB
JSON
Raw Normal View History

2022-04-06 21:37:31 +02:00
{
"id": "transit_stops",
"name": {
2022-07-26 10:51:14 +02:00
"en": "Transit Stops",
2022-09-10 13:25:18 +02:00
"de": "Haltestellen",
"da": "Transitstationer"
2022-04-06 21:37:31 +02:00
},
"description": {
2022-07-26 10:51:14 +02:00
"en": "Layer showing different types of transit stops.",
2022-09-10 13:25:18 +02:00
"de": "Ebene mit verschiedenen Arten von Haltestellen.",
"da": "Lag, der viser forskellige typer transitstop."
2022-04-06 21:37:31 +02:00
},
"source": {
"osmTags": {
"or": [
"highway=bus_stop"
]
}
},
"minzoom": 15,
"title": {
"render": {
2022-07-26 10:51:14 +02:00
"en": "Transit Stop",
2022-09-10 13:25:18 +02:00
"de": "Haltestelle",
"da": "Transit Stop"
2022-04-06 21:37:31 +02:00
},
"mappings": [
{
"if": "name~*",
"then": {
2022-07-26 10:51:14 +02:00
"en": "Stop {name}",
2022-09-10 13:25:18 +02:00
"de": "Haltestelle {name}",
2022-10-27 01:50:01 +02:00
"da": "Stop {name}",
"nl": "Halte {name}"
2022-04-06 21:37:31 +02:00
}
}
]
},
"mapRendering": [
{
"location": [
"point",
"centroid"
],
"icon": {
"render": "./assets/layers/transit_stops/bus_stop.svg",
"mappings": []
},
"label": "<div style=\"background: white; display: block\">{name}</div>"
}
],
"calculatedTags": [
"_routes=feat.memberships()",
"_contained_routes_properties=feat.memberships().map(p => {return {id: p.relation.id, name: p.relation.properties.name} }).filter((v,i,a)=>a.findIndex(t=>(JSON.stringify(t) === JSON.stringify(v)))===i)",
"_contained_route_ids=JSON.parse(feat.properties._contained_routes_properties ?? '[]').map(p => p.id)",
"_contained_routes=JSON.parse(feat.properties._contained_routes_properties ?? '[]').map(p => `<li><a href='#relation/${p.id}'>${p.name ?? 'bus route'}</a></li>`).join('')",
"_contained_routes_count=JSON.parse(feat.properties._contained_routes_properties ?? '[]').length"
],
"tagRenderings": [
{
"id": "stop_name",
"render": {
2022-07-26 10:51:14 +02:00
"en": "This stop is called <b>{name}</b>",
2022-09-10 13:25:18 +02:00
"de": "Der Name der Haltestelle lautet <b>{name}</b>",
2022-12-16 13:40:25 +01:00
"da": "Dette stop hedder <b>{name}</b>",
"nl": "Deze halte heet <b>{name}</b>"
2022-04-06 21:37:31 +02:00
},
"freeform": {
"key": "name",
"type": "string",
"addExtraTags": [
"noname="
],
"placeholder": {
2022-07-26 10:51:14 +02:00
"en": "Name of the stop",
2022-09-10 13:25:18 +02:00
"de": "Name der Haltestelle",
2022-12-16 13:40:25 +01:00
"da": "Navn på stoppestedet",
"nl": "Naam van de halte"
2022-04-06 21:37:31 +02:00
}
},
"mappings": [
{
"if": {
"and": [
"noname=yes",
"name="
]
},
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has no name",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat keinen Namen",
2022-12-16 13:40:25 +01:00
"da": "Dette stop har intet navn",
"nl": "Deze halte heeft geen naam"
2022-04-06 21:37:31 +02:00
}
}
],
"question": {
2022-07-26 10:51:14 +02:00
"en": "What is the name of this stop?",
2022-09-10 13:25:18 +02:00
"de": "Wie lautet der Name der Haltestelle?",
2022-12-16 13:40:25 +01:00
"da": "Hvad er navnet på dette stop?",
"nl": "Wat is de naam van deze halte?"
2022-10-18 19:44:53 +02:00
}
2022-04-06 21:37:31 +02:00
},
"images",
{
"id": "shelter",
"mappings": [
{
"if": "shelter=yes",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a shelter",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat einen Unterstand",
2022-12-16 13:40:25 +01:00
"da": "Dette stop har et ly",
"nl": "Deze halte heeft een schuilplaats"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "shelter=no",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop does not have a shelter",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat keinen Unterstand",
2022-12-16 13:40:25 +01:00
"da": "Dette stop har ikke et ly",
"nl": "Deze halte heeft geen schuilplaats"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "shelter=separate",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a shelter, that's separately mapped",
2022-12-16 13:40:25 +01:00
"de": "Die Haltestelle hat einen Unterstand, der separat kariert ist",
"nl": "Deze halte heeft een schuilplaats, die apart op de kaart staat"
2022-04-06 21:37:31 +02:00
},
"hideInAnswer": true
}
],
"question": {
2022-07-26 10:51:14 +02:00
"en": "Does this stop have a shelter?",
2022-09-10 13:25:18 +02:00
"de": "Hat die Haltestelle einen Unterstand?",
2022-12-16 13:40:25 +01:00
"da": "Har dette stop et ly?",
"nl": "Heeft deze halte een schuilplaats?"
2022-04-06 21:37:31 +02:00
}
},
{
"id": "bench",
"mappings": [
{
"if": "bench=yes",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a bench",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat eine Bank",
2022-10-27 01:50:01 +02:00
"da": "Dette stop har en bænk",
"nl": "Deze halte heeft een zitbank"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "bench=no",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop does not have a bench",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat keine Bank",
2022-10-27 01:50:01 +02:00
"da": "Dette stoppested har ingen bænk",
"nl": "Deze halte heeft geen zitbank"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "bench=separate",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a bench, that's separately mapped",
2022-10-27 01:50:01 +02:00
"de": "Die Haltestelle hat eine Bank, die separat kartiert ist",
"nl": "Deze halte heeft een zitbank, die los aangegeven is op de kaart"
2022-04-06 21:37:31 +02:00
},
"hideInAnswer": true
}
],
"question": {
2022-07-26 10:51:14 +02:00
"en": "Does this stop have a bench?",
2022-09-10 13:25:18 +02:00
"de": "Gibt es an der Haltestelle eine Sitzbank?",
2022-10-27 01:50:01 +02:00
"da": "Har dette stop en bænk?",
"nl": "Heeft deze halte een zitbank?"
2022-04-06 21:37:31 +02:00
}
},
{
"id": "bin",
"mappings": [
{
"if": "bin=yes",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a bin",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat einen Mülleimer",
2022-10-27 01:50:01 +02:00
"da": "Dette stop har en skraldespand",
"nl": "Deze halte heeft een vuilnisbak"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "bin=no",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop does not have a bin",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat keinen Mülleimer",
2022-10-27 01:50:01 +02:00
"da": "Dette stoppested har ikke en skraldespand",
"nl": "Deze halte heeft geen vuilnisbak"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "bin=separate",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a bin, that's separately mapped",
2022-10-27 01:50:01 +02:00
"de": "Die Haltestelle hat einen Mülleimer, der separat kartiert ist",
"nl": "Deze heeft een vuilnisbak, die los op de kaart staat"
2022-04-06 21:37:31 +02:00
},
"hideInAnswer": true
}
],
"question": {
2022-07-26 10:51:14 +02:00
"en": "Does this stop have a bin?",
2022-09-10 13:25:18 +02:00
"de": "Hat die Haltestelle einen Mülleimer?",
2022-10-27 01:50:01 +02:00
"da": "Har dette stop en skraldespand?",
"nl": "Heeft deze halte een vuilnisbak?"
2022-04-06 21:37:31 +02:00
}
},
"wheelchair-access",
{
"id": "tactile_paving",
"mappings": [
{
"if": "tactile_paving=yes",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has tactile paving",
"de": "Die Haltestelle hat ein taktiles Pflaster"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "tactile_paving=no",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop does not have tactile paving",
"de": "Die Haltestelle hat kein taktiles Pflaster"
2022-04-06 21:37:31 +02:00
}
}
],
"question": {
2022-07-26 10:51:14 +02:00
"en": "Does this stop have tactile paving?",
"de": "Hat die Haltestelle hat ein taktiles Pflaster?"
2022-04-06 21:37:31 +02:00
}
},
{
"id": "lit",
"mappings": [
{
"if": "lit=yes",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop is lit",
2022-12-16 13:40:25 +01:00
"de": "Die Haltestelle ist beleuchtet",
"nl": "Deze halte is niet verlicht"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "lit=no",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop is not lit",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle ist nicht beleuchtet",
2022-12-16 13:40:25 +01:00
"da": "Dette stop lyser ikke",
"nl": "Deze halte is niet verlicht"
2022-04-06 21:37:31 +02:00
}
}
],
"question": {
2022-07-26 10:51:14 +02:00
"en": "Is this stop lit?",
2022-12-16 13:40:25 +01:00
"de": "Ist die Haltestelle beleuchtet?",
"nl": "Is deze halte verlicht?"
2022-04-06 21:37:31 +02:00
}
},
{
"id": "departures_board",
"mappings": [
{
"if": "departures_board=yes",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a departures board of unknown type",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat einen Fahrplan, der nicht näher definiert ist",
"da": "Dette stoppested har en afgangstavle af ukendt type"
2022-04-06 21:37:31 +02:00
},
"hideInAnswer": true
},
{
"if": "departures_board=realtime",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a board showing realtime departure information",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat einen Fahrplan, der Abfahrtszeiten in Echtzeit anzeigt",
"da": "Dette stop har en tavle med oplysninger om afgang i realtid"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "passenger_information_display=yes",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a board showing realtime departure information",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat einen Fahrplan, der Abfahrtszeiten in Echtzeit anzeigt",
"da": "Dette stop har en tavle med oplysninger om afgang i realtid"
2022-04-06 21:37:31 +02:00
},
"hideInAnswer": true
},
{
"if": "departures_board=timetable",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a timetable showing regular departures",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat einen Fahrplan, der die regulären Abfahrtszeiten anzeigt",
"da": "Dette stop har en køreplan, der viser regelmæssige afgange"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "departures_board=interval",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop has a timetable containing just the interval between departures",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat einen Fahrplan, der den Abstand zwischen Abfahrten anzeigt",
"da": "Dette stop har en køreplan, der kun indeholder intervallet mellem afgangene"
2022-04-06 21:37:31 +02:00
}
},
{
"if": "departures_board=no",
"then": {
2022-07-26 10:51:14 +02:00
"en": "This stop does not have a departures board",
2022-09-10 13:25:18 +02:00
"de": "Die Haltestelle hat keinen Fahrplan",
"da": "Dette stop har ikke en afgangstavle"
2022-04-06 21:37:31 +02:00
}
}
]
},
{
"render": {
2022-07-26 10:51:14 +02:00
"en": "<h3>{_contained_routes_count} routes stop at this stop</h3> <ul>{_contained_routes}</ul>",
2022-09-10 13:25:18 +02:00
"de": "<h3>{_contained_routes_count} Linien halten an der Haltestelle</h3> <ul>{_contained_routes}</ul>",
"da": "<h3>{_contained_routes_count} ruter stopper ved dette stoppested</h3> <ul>{_contained_routes}</ul>"
2022-04-06 21:37:31 +02:00
},
"condition": "_contained_routes~*",
"id": "contained_routes"
}
],
2022-10-18 19:44:53 +02:00
"filter": [
{
"id": "shelter",
"options": [
{
"osmTags": {
2022-10-27 01:50:01 +02:00
"or": [
"shelter=yes",
"shelter=separate"
]
2022-10-18 19:44:53 +02:00
},
"question": {
2022-11-02 13:47:34 +01:00
"en": "With a shelter",
"de": "Mit einem Unterstand"
2022-10-18 19:44:53 +02:00
}
}
]
},
{
"id": "bench",
"options": [
{
"osmTags": {
2022-10-27 01:50:01 +02:00
"or": [
"bench=yes",
"bench=separate"
]
2022-10-18 19:44:53 +02:00
},
"question": {
2022-11-02 13:47:34 +01:00
"en": "With a bench",
"de": "Mit einer Bank"
2022-10-18 19:44:53 +02:00
}
}
]
},
{
"id": "bin",
"options": [
{
"osmTags": {
2022-10-27 01:50:01 +02:00
"or": [
"bin=yes",
"bin=separate"
]
2022-10-18 19:44:53 +02:00
},
"question": {
2022-11-02 13:47:34 +01:00
"en": "With a bin",
"de": "Mit einem Mülleimer"
2022-10-18 19:44:53 +02:00
}
}
]
},
2022-10-22 16:08:13 +02:00
"tactile_paving"
2022-10-18 19:44:53 +02:00
],
2022-04-06 21:37:31 +02:00
"allowMove": false
2022-10-27 01:50:01 +02:00
}