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.

162 lines
5.5 KiB

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