Main categories of OpenStreetBrowser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
4.6 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Tresporte Públicu",
  5. "cs": "Veřejná doprava",
  6. "de": "Öffentlicher Verkehr",
  7. "el": "Δημόσιες Μεταφορές",
  8. "en": "Public Transportation",
  9. "et": "Ühistransport",
  10. "fr": "Transports publics",
  11. "hu": "Tömegközlekedés",
  12. "it": "Trasporti pubblici",
  13. "ja": "公共輸送",
  14. "nl": "Openbaar vervoer",
  15. "pl": "Transport Publiczny",
  16. "ro": "Transport public",
  17. "ru": "Общественный транспорт",
  18. "uk": "Громадський транспорт",
  19. "pt-br": "Transporte Público",
  20. "pt": "Transportes públicos"
  21. },
  22. "name_routes": {
  23. "de": "Routen",
  24. "en": "Routes",
  25. "fr": "Lignes",
  26. "pt": "Rotas",
  27. "pt-br": "Rotas"
  28. },
  29. "query": {
  30. "12": "relation[type=route][route~\"^(subway|monorail|ferry|train)$\"];",
  31. "14": "relation[type=route][route~\"^(subway|monorail|aerialway|bus|trolleybus|ferry|train|tram)$\"];"
  32. },
  33. "members": true,
  34. "feature": {
  35. "styles": "",
  36. "title": [
  37. "{% if tags.ref %}{{ tags.ref }} - {% endif %}",
  38. "",
  39. "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
  40. ],
  41. "description": "{{ tagTrans('route', tags.route) }}",
  42. "body": [
  43. "<h4>Stops</h4>",
  44. "{% for member in members %}",
  45. "{% if member.role|slice(-4) == 'stop' %}",
  46. "<div object='{{ member.id }}' sublayer='member'><b>{{ member.tags.name }}</b></div>",
  47. "{% endif %}",
  48. "{% endfor %}"
  49. ],
  50. "listMarkerSign": "{{ const[tags.route].sign|raw }}",
  51. "markerSymbol": null,
  52. "listMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}",
  53. "style": {
  54. "color": "{{ const[tags.route].color }}"
  55. }
  56. },
  57. "memberFeature": {
  58. "listMarkerSymbol": "{{ markerCircle({})|raw }}",
  59. "style": {
  60. "color": [
  61. "{% set master = masters[0] %}",
  62. "{{ {'subway':'#0000ff','tram':'#007fff','trolley':'#ff007f','bus':'#ff0000'}[master.tags.route]|default('#000000') }}"
  63. ],
  64. "width": "{% if map.zoom>=15 %}5{% else %}3{% endif %}"
  65. },
  66. "title": "{% if tags.public_transport == 'stop_position' %}{{ tags.name }}{% endif %}",
  67. "listStopsTitle": "{{ tags.name }}: {% for master in masters %}{{ master.tags.ref }} {% endfor %}",
  68. "body": [
  69. "{% for master in masters %}",
  70. " '<div object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</b> ({{ master.id }})</div>",
  71. "{% endfor %}"
  72. ],
  73. "listRoutesExclude": "true",
  74. "listStopsExclude": "{% set isStop = 0 %}{% for master in masters %}{% if master.role|slice(-4) == 'stop' %}{% set isStop = 1 %}{% endif %}{% endfor %}{{ not isStop }}"
  75. },
  76. "info": [
  77. "<table>",
  78. "{% for value, data in const %}",
  79. "{% if data.zoom <= map.zoom %}",
  80. " <tr>",
  81. " <td>{{ markerCircle({fillColor:data.color})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  82. " <td>{{ tagTrans('route', value) }}</td>",
  83. " </tr>",
  84. "{% endif %}",
  85. "{% endfor %}",
  86. "</table>"
  87. ],
  88. "const": {
  89. "train": {
  90. "sign": "<img src='maki:rail?fill=#ffffff'>",
  91. "zoom": 12,
  92. "color": "#202020"
  93. },
  94. "subway": {
  95. "sign": "<img src='maki:rail-metro?fill=#ffffff'>",
  96. "zoom": 12,
  97. "color": "#00007f"
  98. },
  99. "monorail": {
  100. "sign": "<span style='color: #ffffff'>M</span>",
  101. "zoom": 12,
  102. "color": "#006f8f"
  103. },
  104. "tram": {
  105. "sign": "<img src='maki:rail-light?fill=#ffffff'>",
  106. "zoom": 12,
  107. "color": "#7f007f"
  108. },
  109. "bus": {
  110. "sign": "<img src='maki:bus?fill=#ffffff'>",
  111. "zoom": 12,
  112. "color": "#af0000"
  113. },
  114. "trolleybus": {
  115. "sign": "<img src='maki:bus?fill=#ffffff'>",
  116. "zoom": 12,
  117. "color": "#af3f00"
  118. },
  119. "aerialway": {
  120. "sign": "<img src='maki:aerialway?fill=#ffffff'>",
  121. "zoom": 12,
  122. "color": "#00aaaa"
  123. },
  124. "ferry": {
  125. "sign": "<img src='maki:ferry?fill=#ffffff'>",
  126. "zoom": 12,
  127. "color": "#007fff"
  128. }
  129. }
  130. }