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.

161 lines
5.6 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. "es": "Comunicación",
  11. "et": "Kommunikatsioon",
  12. "fr": "Communication",
  13. "gl": "Comunicacións",
  14. "hu": "Kommunikácó",
  15. "it": "Comunicazione",
  16. "ja": "情報通信",
  17. "nb": "Kommunikasjon",
  18. "nl": "Communicatie",
  19. "oc": "Communicacion",
  20. "pl": "Komunikacja",
  21. "pt": "Comunicação",
  22. "pt-br": "Comunicação",
  23. "ro": "Comunicatii",
  24. "ru": "Услуги связи",
  25. "sr": "Комуникација",
  26. "tr": "İletişim",
  27. "uk": "Телекомунікації"
  28. },
  29. "query": {
  30. "13": [
  31. "(",
  32. "nwr[amenity~'^(post_office|internet_cafe)$'];",
  33. "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
  34. ");"
  35. ],
  36. "15": [
  37. "(",
  38. "nwr[amenity~'^(post_office|internet_cafe|post_box|parcel_locker|telephone)$'];",
  39. "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
  40. "nwr[vending~\"^(|.*;)parcel_pickup(;.*|)$\"];",
  41. "nwr[vending~\"^(|.*;)parcel_mail_in(;.*|)$\"];",
  42. ");"
  43. ]
  44. },
  45. "feature": {
  46. "pre": [
  47. "{% if tags.vending %}",
  48. " {% set key = 'amenity' %}",
  49. " {% set value = 'parcel_locker' %}",
  50. " {% set deprecated = ['vending=' ~ tags.vending, 'https://wiki.openstreetmap.org/wiki/Proposed_features/amenity%3Dparcel_locker'] %}",
  51. "{% elseif tags.amenity %}",
  52. " {% set key = 'amenity' %}",
  53. " {% set value = tags.amenity %}",
  54. "{% else %}",
  55. " {% set key = 'office' %}",
  56. " {% set value = tags.office %}",
  57. "{% endif %}"
  58. ],
  59. "description": [
  60. "{% if key == 'office' %}",
  61. " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
  62. "{% else %}",
  63. " {{ tagTransList(key, value) }}",
  64. "{% endif %}"
  65. ],
  66. "body": [
  67. "{% if deprecated %}<div class='warning'>{{ repoTrans('deprecated', deprecated[0], deprecated[1])|raw }}</div>{% endif %}",
  68. "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}"
  69. ],
  70. "markerSign": [
  71. "{% set data = const[key ~ '=' ~ value] %}",
  72. "{% if data %}",
  73. "{{ data.sign|raw }}",
  74. "{% endif %}"
  75. ],
  76. "markerSymbol": "{{ markerPointer({\"fillColor\": (deprecated ? 'red' : '#f2756a') })|raw }}",
  77. "listMarkerSymbol": "{{ markerCircle({\"fillColor\": (deprecated ? 'red' : '#f2756a')})|raw }}"
  78. },
  79. "info": [
  80. "<table>",
  81. "{% for kv, data in const %}",
  82. "{% if data.zoom <= map.zoom and not data.info_hide %}",
  83. " <tr>",
  84. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  85. " <td>",
  86. " {% if kv|split('=')[0] == 'office' %}",
  87. " {{ keyTrans('office') }}",
  88. " ({{ tagTrans('office', kv|split('=')[1]) }})",
  89. " {% else %}",
  90. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  91. " {% endif %}",
  92. " </td>",
  93. " </tr>",
  94. "{% endif %}",
  95. "{% endfor %}",
  96. "</table>"
  97. ],
  98. "const": {
  99. "amenity=post_office": {
  100. "sign": "<img src='maki:post?size=15'>",
  101. "zoom": 13
  102. },
  103. "amenity=post_box": {
  104. "sign": "<img src='maki:post?size=11'>",
  105. "zoom": 16
  106. },
  107. "amenity=internet_cafe": {
  108. "sign": "<i class='fa fa-laptop' aria-hidden='true'></i>",
  109. "zoom": 13
  110. },
  111. "amenity=parcel_locker": {
  112. "sign": "<i class='fas fa-box'></i>",
  113. "query": "(nwr[vending~\"^(|.*;)parcel_pickup(;.*|)$\"];nwr[vending~\"^(|.*;)parcel_mail_in(;.*|)$\"];nwr[amenity=parcel_locker];)",
  114. "zoom": 16
  115. },
  116. "office=telecommunication": {
  117. "sign": "<i class='fas fa-mobile-alt'></i>",
  118. "zoom": 13
  119. },
  120. "office=it": {
  121. "sign": "<i class='fas fa-desktop'></i>",
  122. "zoom": 13
  123. },
  124. "office=newspaper": {
  125. "sign": "<i class='fas fa-newspaper'></i>",
  126. "zoom": 13
  127. },
  128. "office=publisher": {
  129. "sign": "<i class='fas fa-book'></i>",
  130. "zoom": 13
  131. },
  132. "office=advertising_agency": {
  133. "sign": "<i class='fas fa-sign'></i>",
  134. "zoom": 13
  135. },
  136. "office=public_relations": {
  137. "sign": "<i class='fas fa-sign'></i>",
  138. "zoom": 13
  139. },
  140. "office=audiovisual_production": {
  141. "sign": "<i class='fas fa-film'></i>",
  142. "zoom": 13
  143. },
  144. "office=film_production": {
  145. "sign": "<i class='fas fa-film'></i>",
  146. "zoom": 13
  147. },
  148. "amenity=telephone": {
  149. "sign": "<img src='maki:telephone'>",
  150. "zoom": 16
  151. }
  152. },
  153. "filter": {
  154. "type": {
  155. "name": "{{ trans('filter:type') }}",
  156. "show_default": "true",
  157. "type": "select",
  158. "values": "{% for k, v in const %}<option value=\"{{ k }}\" query=\"{% if v.query %}{{ v.query }}{% else %}nwr[{{ k }}]{% endif %}\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  159. }
  160. }
  161. }