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.3 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. " {% set deprecated = ['vending=' ~ tags.vending, 'https://wiki.openstreetmap.org/wiki/Proposed_features/amenity%3Dparcel_locker'] %}",
  44. "{% elseif tags.amenity %}",
  45. " {% set key = 'amenity' %}",
  46. " {% set value = tags.amenity %}",
  47. "{% else %}",
  48. " {% set key = 'office' %}",
  49. " {% set value = tags.office %}",
  50. "{% endif %}"
  51. ],
  52. "description": [
  53. "{% if key == 'office' %}",
  54. " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
  55. "{% else %}",
  56. " {{ tagTransList(key, value) }}",
  57. "{% endif %}"
  58. ],
  59. "body": [
  60. "{% if deprecated %}<div class='warning'>{{ repoTrans('deprecated', deprecated[0], deprecated[1])|raw }}</div>{% endif %}",
  61. "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}"
  62. ],
  63. "markerSign": [
  64. "{% set data = const[key ~ '=' ~ value] %}",
  65. "{% if data %}",
  66. "{{ data.sign|raw }}",
  67. "{% endif %}"
  68. ]
  69. },
  70. "info": [
  71. "<table>",
  72. "{% for kv, data in const %}",
  73. "{% if data.zoom <= map.zoom and not data.info_hide %}",
  74. " <tr>",
  75. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  76. " <td>",
  77. " {% if kv|split('=')[0] == 'office' %}",
  78. " {{ keyTrans('office') }}",
  79. " ({{ tagTrans('office', kv|split('=')[1]) }})",
  80. " {% else %}",
  81. " {{ tagTrans(kv|split('=')[0], kv|split('=')[1]) }}",
  82. " {% endif %}",
  83. " </td>",
  84. " </tr>",
  85. "{% endif %}",
  86. "{% endfor %}",
  87. "</table>"
  88. ],
  89. "const": {
  90. "amenity=post_office": {
  91. "sign": "<img src='maki:post?size=15'>",
  92. "zoom": 13
  93. },
  94. "amenity=post_box": {
  95. "sign": "<img src='maki:post?size=11'>",
  96. "zoom": 16
  97. },
  98. "amenity=internet_cafe": {
  99. "sign": "<i class='fa fa-laptop' aria-hidden='true'></i>",
  100. "zoom": 13
  101. },
  102. "amenity=parcel_locker": {
  103. "sign": "<i class='fas fa-box'></i>",
  104. "zoom": 16
  105. },
  106. "vending=parcel_pickup": {
  107. "sign": "<i class='fas fa-box'></i>",
  108. "info_hide": true,
  109. "zoom": 16
  110. },
  111. "vending=parcel_mail_in": {
  112. "sign": "<i class='fas fa-box'></i>",
  113. "info_hide": true,
  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=\"nwr[{{ k }}]\" minzoom=\"{{ v.zoom }}\">{{ tagTrans(k) }}</option>{% endfor %}"
  159. }
  160. }
  161. }