Main categories of OpenStreetBrowser with public transport zoom level
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.

157 lines
5.0 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Comunicaciones",
  5. "ca": "Comunicacions",
  6. "cs": "Komunikace",
  7. "de": "Kommunikation",
  8. "el": "Επικοινωνίες",
  9. "en": "Communication",
  10. "et": "Kommunikatsioon",
  11. "fr": "Communication",
  12. "hu": "Kommunikácó",
  13. "it": "Communicazioni",
  14. "ja": "交流",
  15. "nl": "Communicatie",
  16. "pt": "Comunicação",
  17. "pt-br": "Comunicação",
  18. "ro": "Comunicatii",
  19. "ru": "Услуги связи",
  20. "uk": "Телекомунікації"
  21. },
  22. "query": {
  23. "13": [
  24. "(",
  25. "nwr[amenity~'^(post_office|internet_cafe)$'];",
  26. "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
  27. ");"
  28. ],
  29. "15": [
  30. "(",
  31. "nwr[amenity~'^(post_office|internet_cafe|post_box|parcel_locker|telephone)$'];",
  32. "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
  33. "nwr[vending~\"^(|.*;)parcel_pickup(;.*|)$\"];",
  34. "nwr[vending~\"^(|.*;)parcel_mail_in(;.*|)$\"];",
  35. ");"
  36. ]
  37. },
  38. "feature": {
  39. "pre": [
  40. "{% if tags.vending %}",
  41. " {% set key = 'amenity' %}",
  42. " {% set value = 'parcel_locker' %}",
  43. "{% elseif tags.amenity %}",
  44. " {% set key = 'amenity' %}",
  45. " {% set value = tags.amenity %}",
  46. "{% else %}",
  47. " {% set key = 'office' %}",
  48. " {% set value = tags.office %}",
  49. "{% endif %}"
  50. ],
  51. "description": [
  52. "{% if key == 'office' %}",
  53. " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
  54. "{% else %}",
  55. " {{ tagTransList(key, value) }}",
  56. "{% endif %}"
  57. ],
  58. "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}",
  59. "markerSign": [
  60. "{% set data = const[key ~ '=' ~ value] %}",
  61. "{% if data %}",
  62. "{{ data.sign|raw }}",
  63. "{% endif %}"
  64. ]
  65. },
  66. "info": [
  67. "<table>",
  68. "{% for kv, data in const %}",
  69. "{% if data.zoom <= map.zoom and not data.info_hide %}",
  70. " <tr>",
  71. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  72. " <td>",
  73. " {% if kv|split('=')[0] == 'office' %}",
  74. " {{ keyTrans('office') }}",
  75. " ({{ tagTrans('office', kv|split('=')[1]) }})",
  76. " {% else %}",
  77. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  78. " {% endif %}",
  79. " </td>",
  80. " </tr>",
  81. "{% endif %}",
  82. "{% endfor %}",
  83. "</table>"
  84. ],
  85. "const": {
  86. "amenity=post_office": {
  87. "sign": "<img src='maki:post?size=15'>",
  88. "zoom": 13
  89. },
  90. "amenity=post_box": {
  91. "sign": "<img src='maki:post?size=11'>",
  92. "zoom": 16
  93. },
  94. "amenity=internet_cafe": {
  95. "sign": "<i class='fa fa-laptop' aria-hidden='true'></i>",
  96. "zoom": 13
  97. },
  98. "amenity=parcel_locker": {
  99. "sign": "<i class='fas fa-box'></i>",
  100. "zoom": 16
  101. },
  102. "vending=parcel_pickup": {
  103. "sign": "<i class='fas fa-box'></i>",
  104. "info_hide": true,
  105. "zoom": 16
  106. },
  107. "vending=parcel_mail_in": {
  108. "sign": "<i class='fas fa-box'></i>",
  109. "info_hide": true,
  110. "zoom": 16
  111. },
  112. "office=telecommunication": {
  113. "sign": "<i class='fas fa-mobile-alt'></i>",
  114. "zoom": 13
  115. },
  116. "office=it": {
  117. "sign": "<i class='fas fa-desktop'></i>",
  118. "zoom": 13
  119. },
  120. "office=newspaper": {
  121. "sign": "<i class='fas fa-newspaper'></i>",
  122. "zoom": 13
  123. },
  124. "office=publisher": {
  125. "sign": "<i class='fas fa-book'></i>",
  126. "zoom": 13
  127. },
  128. "office=advertising_agency": {
  129. "sign": "<i class='fas fa-sign'></i>",
  130. "zoom": 13
  131. },
  132. "office=public_relations": {
  133. "sign": "<i class='fas fa-sign'></i>",
  134. "zoom": 13
  135. },
  136. "office=audiovisual_production": {
  137. "sign": "<i class='fas fa-film'></i>",
  138. "zoom": 13
  139. },
  140. "office=film_production": {
  141. "sign": "<i class='fas fa-film'></i>",
  142. "zoom": 13
  143. },
  144. "amenity=telephone": {
  145. "sign": "<img src='maki:telephone'>",
  146. "zoom": 16
  147. }
  148. },
  149. "filter": {
  150. "type": {
  151. "name": "{{ trans('filter:type') }}",
  152. "show_default": "true",
  153. "type": "select",
  154. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  155. }
  156. }
  157. }