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.

153 lines
5.2 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  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. "query": {
  23. "12": "relation[type=route][route~\"^(subway|monorail|ferry|train)$\"];",
  24. "14": "relation[type=route][route~\"^(subway|monorail|aerialway|bus|trolleybus|ferry|train|tram)$\"];"
  25. },
  26. "members": true,
  27. "lists": {
  28. "stops": {
  29. "prefix": "listStops",
  30. "name": {
  31. "ast": "Paraes y estaciones",
  32. "cs": "Zastávky & Stanice",
  33. "de": "Haltestellen",
  34. "el": "Στάσεις & Σταθμοί",
  35. "en": "Stops & Stations",
  36. "es": "Paradas y estaciones",
  37. "fr": "Arrêts/Stops, Stations",
  38. "hu": "Megállók és állomások",
  39. "it": "Stazioni e fermate",
  40. "ja": "停留所と駅",
  41. "nl": "Haltes en Stations",
  42. "pl": "Przystanki i Stacje",
  43. "pt-br": "Paradas e Estações",
  44. "ru": "Остановки и станции",
  45. "uk": "Зупинки та станції"
  46. }
  47. },
  48. "routes": {
  49. "prefix": "listRoutes",
  50. "name": {
  51. "de": "Routen",
  52. "en": "Routes",
  53. "fr": "Lignes",
  54. "pt": "Rotas",
  55. "pt-br": "Rotas"
  56. }
  57. }
  58. },
  59. "feature": {
  60. "styles": "",
  61. "title": [
  62. "{% if tags.ref %}{{ tags.ref }} - {% endif %}",
  63. "",
  64. "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
  65. ],
  66. "description": "{{ tagTrans('route', tags.route) }}",
  67. "body": [
  68. "<h4>Stops {{ map.zoom }}</h4>",
  69. "{% for member in members %}",
  70. "{% if member.role|slice(-4) == 'stop' %}",
  71. "<div object='{{ member.id }}' sublayer='member'><b>{{ member.tags.name }}</b></div>",
  72. "{% endif %}",
  73. "{% endfor %}"
  74. ],
  75. "listStopsExclude": "true",
  76. "listRoutesMarkerSign": "{{ const[tags.route].sign|raw }}",
  77. "markerSymbol": null,
  78. "listRoutesMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}"
  79. },
  80. "memberFeature": {
  81. "listStopsMarkerSymbol": "{{ markerCircle({})|raw }}",
  82. "style": {
  83. "color": [
  84. "{% set master = masters[0] %}",
  85. "{{ const[master.tags.route].color|default('#ff0000') }}"
  86. ],
  87. "width": "{% if map.zoom>=15 %}5{% else %}3{% endif %}"
  88. },
  89. "title": "{% if tags.public_transport == 'stop_position' %}{{ tags.name }}{% endif %}",
  90. "listStopsTitle": "{{ tags.name }}<br/>{% for master in masters %}{{ master.tags.ref }} {% endfor %}",
  91. "body": [
  92. "{% for master in masters %}",
  93. " '<div object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</b> ({{ master.id }})</div>",
  94. "{% endfor %}"
  95. ],
  96. "listRoutesExclude": "true",
  97. "listStopsExclude": "{% set isStop = 0 %}{% for master in masters %}{% if master.role|slice(-4) == 'stop' %}{% set isStop = 1 %}{% endif %}{% endfor %}{{ not isStop }}"
  98. },
  99. "info": [
  100. "<table>",
  101. "{% for value, data in const %}",
  102. "{% if data.zoom <= map.zoom %}",
  103. " <tr>",
  104. " <td>{{ markerCircle({fillColor:data.color})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  105. " <td>{{ tagTrans('route', value) }}</td>",
  106. " </tr>",
  107. "{% endif %}",
  108. "{% endfor %}",
  109. "</table>"
  110. ],
  111. "const": {
  112. "train": {
  113. "sign": "<img src='maki:rail?fill=#ffffff'>",
  114. "zoom": 12,
  115. "color": "#00007f"
  116. },
  117. "subway": {
  118. "sign": "<img src='maki:rail-metro?fill=#ffffff'>",
  119. "zoom": 12,
  120. "color": "#0000ff"
  121. },
  122. "monorail": {
  123. "sign": "<span style='color: #ffffff'>M</span>",
  124. "zoom": 12,
  125. "color": "#006f8f"
  126. },
  127. "tram": {
  128. "sign": "<img src='maki:rail-light?fill=#ffffff'>",
  129. "zoom": 12,
  130. "color": "#7f007f"
  131. },
  132. "bus": {
  133. "sign": "<img src='maki:bus?fill=#ffffff'>",
  134. "zoom": 12,
  135. "color": "#af0000"
  136. },
  137. "trolleybus": {
  138. "sign": "<img src='maki:bus?fill=#ffffff'>",
  139. "zoom": 12,
  140. "color": "#af3f00"
  141. },
  142. "aerialway": {
  143. "sign": "<img src='maki:aerialway?fill=#ffffff'>",
  144. "zoom": 12,
  145. "color": "#00aaaa"
  146. },
  147. "ferry": {
  148. "sign": "<img src='maki:ferry?fill=#ffffff'>",
  149. "zoom": 12,
  150. "color": "#007fff"
  151. }
  152. }
  153. }