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.

158 lines
5.3 KiB

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</h4><ul>",
  69. "{% for member in members %}",
  70. "{% if member.role|slice(-4) == 'stop' %}",
  71. "<li data-object='{{ member.id }}' data-sublayer='member'><b>{{ member.tags.name|default(member.id) }}</li>",
  72. "{% endif %}",
  73. "{% endfor %}",
  74. "</ul>"
  75. ],
  76. "listStopsExclude": "true",
  77. "listRoutesMarkerSign": "{{ const[tags.route].sign|raw }}",
  78. "markerSymbol": null,
  79. "listRoutesMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}"
  80. },
  81. "memberFeature": {
  82. "listStopsMarkerSymbol": "{{ markerCircle({})|raw }}",
  83. "style": {
  84. "color": [
  85. "{% set master = masters[0] %}",
  86. "{{ const[master.tags.route].color|default('#ff0000') }}"
  87. ],
  88. "width": "{% if map.zoom>=15 %}5{% else %}3{% endif %}"
  89. },
  90. "title": "{% if tags.public_transport == 'stop_position' %}{{ tags.name }}{% endif %}",
  91. "listStopsTitle": "{{ tags.name }}",
  92. "listStopsDescription": "{% for master in masters %}{{ master.tags.ref }} {% endfor %}",
  93. "body": [
  94. "<h4>Routes</h4>",
  95. "<ul>",
  96. "{% for master in masters %}",
  97. " <li data-object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</li>",
  98. "{% endfor %}",
  99. "</ul>"
  100. ],
  101. "listRoutesExclude": "true",
  102. "listStopsExclude": "{% set isStop = 0 %}{% for master in masters %}{% if master.role|slice(-4) == 'stop' %}{% set isStop = 1 %}{% endif %}{% endfor %}{{ not isStop }}"
  103. },
  104. "info": [
  105. "<table>",
  106. "{% for value, data in const %}",
  107. "{% if data.zoom <= map.zoom %}",
  108. " <tr>",
  109. " <td>{{ markerCircle({fillColor:data.color})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  110. " <td>{{ tagTrans('route', value) }}</td>",
  111. " </tr>",
  112. "{% endif %}",
  113. "{% endfor %}",
  114. "</table>"
  115. ],
  116. "const": {
  117. "train": {
  118. "sign": "<img src='maki:rail?fill=#ffffff'>",
  119. "zoom": 12,
  120. "color": "#00007f"
  121. },
  122. "subway": {
  123. "sign": "<img src='maki:rail-metro?fill=#ffffff'>",
  124. "zoom": 12,
  125. "color": "#0000ff"
  126. },
  127. "monorail": {
  128. "sign": "<span style='color: #ffffff'>M</span>",
  129. "zoom": 12,
  130. "color": "#006f8f"
  131. },
  132. "tram": {
  133. "sign": "<img src='maki:rail-light?fill=#ffffff'>",
  134. "zoom": 12,
  135. "color": "#7f007f"
  136. },
  137. "bus": {
  138. "sign": "<img src='maki:bus?fill=#ffffff'>",
  139. "zoom": 12,
  140. "color": "#af0000"
  141. },
  142. "trolleybus": {
  143. "sign": "<img src='maki:bus?fill=#ffffff'>",
  144. "zoom": 12,
  145. "color": "#af3f00"
  146. },
  147. "aerialway": {
  148. "sign": "<img src='maki:aerialway?fill=#ffffff'>",
  149. "zoom": 12,
  150. "color": "#00aaaa"
  151. },
  152. "ferry": {
  153. "sign": "<img src='maki:ferry?fill=#ffffff'>",
  154. "zoom": 12,
  155. "color": "#007fff"
  156. }
  157. }
  158. }