Browse Source

Public transport categories

master
parent
commit
32cac3c700
  1. 12
      index.json
  2. 16
      pt_amenities.json
  3. 14
      pt_routes.json
  4. 9
      pt_stops.json

12
index.json

@ -164,7 +164,17 @@
}, },
"id": "transport_pt", "id": "transport_pt",
"type": "index", "type": "index",
"subCategories": []
"subCategories": [
{
"id": "pt_amenities"
},
{
"id": "pt_stops"
},
{
"id": "pt_routes"
}
]
}, },
{ {
"name": { "name": {

16
pt_amenities.json

@ -1,4 +1,5 @@
{ {
"type": "overpass",
"name": { "name": {
"ast": "Infraestructures", "ast": "Infraestructures",
"cs": "Občanská vybavenost", "cs": "Občanská vybavenost",
@ -8,8 +9,21 @@
"it": "Infrastrutture", "it": "Infrastrutture",
"ja": "生活環境", "ja": "生活環境",
"nl": "Voorzieningen", "nl": "Voorzieningen",
"pl": "",
"ru": "Транспортные принадлежности", "ru": "Транспортные принадлежности",
"uk": "Amenities" "uk": "Amenities"
},
"query": {
"14": "(\nnode[amenity~\"^(taxi|ticket_counter)$\"];\nway[amenity~\"^(taxi|ticket_counter)$\"];\nrelation[amenity~\"^(taxi|ticket_counter)$\"];\nnode[railway~\"^(subway_entrance)$\"];\nway[railway~\"^(subway_entrance)$\"];\nrelation[railway~\"^(subway_entrance)$\"];\n)"
},
"feature": {
"pre": "{% if tags.railway == 'subway_entrance' %}\n {% set key = 'railway' %}\n {% set value = tags.railway %}\n{% else %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% endif %}",
"description": "{{ tagTrans(key, value) }}",
"body": "{{ tagTrans(key, value) }}",
"markerSign": "{{ const[value] }}"
},
"const": {
"taxi": "🚖",
"ticket_counter": "🎫",
"subway_entrance": "🚉"
} }
} }

14
pt_routes.json

@ -0,0 +1,14 @@
{
"type": "overpass",
"name": {
"en": "Routes",
"de": "Routen"
},
"query": {
"13": "relation[type=route][route~\"^(bus|trolleybus|ferry|train|tram)$\"];"
},
"feature": {
"description": "{{ tagTrans('route', tags.route) }}",
"title": "{% if tags.ref %}{{ tags.ref }} - {% endif %}\n\n{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
}
}

9
pt_stops.json

@ -1,4 +1,5 @@
{ {
"type": "overpass",
"name": { "name": {
"ast": "Paraes y estaciones", "ast": "Paraes y estaciones",
"cs": "Zastávky & Stanice", "cs": "Zastávky & Stanice",
@ -14,5 +15,13 @@
"pl": "Przystanki i Stacje", "pl": "Przystanki i Stacje",
"ru": "Остановки и станции", "ru": "Остановки и станции",
"uk": "Зупинки та станції" "uk": "Зупинки та станції"
},
"query": {
"14": "(\nnode[railway~\"^(station|halt|tram_stop|platform)$\"];\nway[railway~\"^(station|platform)$\"];\nnode[highway~\"^(bus_stop|platform)$\"];\nway[highway~\"^(platform)$\"];\nnode[public_transport~\"^(stop_position|platform)$\"];\nway[public_transport~\"^(platform)$\"];\nnode[amenity~\"^(ferry_terminal|bus_station)$\"];\n)"
},
"feature": {
"pre": "{% if tags.amenity in [ 'ferry_terminal', 'bus_station' ] %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% elseif tags.railway == 'platform' or tags.highway == 'platform' or tags.public_transport == 'platform' %}\n {% set key = 'public_transport' %}\n {% set value = 'platform' %}\n{% else %}\n {% set key = 'public_transport' %}\n {% set value = 'stop_position' %}\n{% endif %}",
"description": "{{ tagTrans(key, value) }}",
"body": "{{ tagTrans(key, value) }}"
} }
} }
Loading…
Cancel
Save