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.

116 lines
3.4 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Einrichtungen für Kinder",
  5. "en": "Children amenities",
  6. "fr": "Équipements pour enfants",
  7. "pt-br": "Equipamentos Infantis"
  8. },
  9. "query": {
  10. "15": [
  11. "(",
  12. "node[leisure~'^(playground|summer_camp|indoor_play)$'];",
  13. "way[leisure~'^(playground|summer_camp|indoor_play)$'];",
  14. "relation[leisure~'^(playground|summer_camp|indoor_play)$'];",
  15. "node[shop~'^(baby_goods|toys)$'];",
  16. "way[shop~'^(baby_goods|toys)$'];",
  17. "relation[shop~'^(baby_goods|toys)$'];",
  18. "node[amenity=toilets][diaper];",
  19. "way[amenity=toilets][diaper];relation[amenity=toilets][diaper];",
  20. "node[kids_area];",
  21. "way[kids_area];",
  22. "relation[kids_area];",
  23. ");"
  24. ],
  25. "17": [
  26. "(",
  27. "node[leisure~'^(playground|summer_camp|indoor_play)$'];",
  28. "way[leisure~'^(playground|summer_camp|indoor_play)$'];",
  29. "relation[leisure~'^(playground|summer_camp|indoor_play)$'];",
  30. "node[shop~'^(baby_goods|toys)$'];",
  31. "way[shop~'^(baby_goods|toys)$'];",
  32. "relation[shop~'^(baby_goods|toys)$'];",
  33. "node[amenity=toilets][diaper];",
  34. "way[amenity=toilets][diaper];relation[amenity=toilets][diaper];",
  35. "node[kids_area];",
  36. "way[kids_area];",
  37. "relation[kids_area];",
  38. "node[playground];",
  39. "way[playground];",
  40. "relation[playground];",
  41. ");"
  42. ]
  43. },
  44. "feature": {
  45. "pre": [
  46. "{% if tags.leisure %}",
  47. " {% set key = 'leisure' %}",
  48. " {% set value = tags.leisure %}",
  49. "{% elseif tags.kids_area %}",
  50. " {% set key = 'kids_area' %}",
  51. " {% set value = tags.kids_area %}",
  52. "{% elseif tags.shop %}",
  53. " {% set key = 'shop' %}",
  54. " {% set value = tags.shop %}",
  55. "{% elseif tags.playground %}",
  56. " {% set key = 'playground' %}",
  57. " {% set value = tags.playground %}",
  58. "{% else %}",
  59. " {% set key = 'amenity' %}",
  60. " {% set value = tags.amenity %}",
  61. "{% endif %}",
  62. "",
  63. "{% set type_data = const[key + '=' + value] |default(const['default']) %}"
  64. ],
  65. "title": "{{ keyTrans(key) }}: {{localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}",
  66. "markerSign": "{{ type_data.sign|raw }}",
  67. "priority": "{{ type_data.priority }}",
  68. "style": {
  69. "fillColor": "{% if tags.playground!='' %}#3388ff{% else %}#1dc140{% endif %}"
  70. }
  71. },
  72. "info": [
  73. "<table>",
  74. "{% for value, data in const %}",
  75. " <tr>",
  76. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
  77. " <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
  78. " </tr>",
  79. "{% endfor %}",
  80. "</table>"
  81. ],
  82. "const": {
  83. "leisure=playground": {
  84. "priority": 10,
  85. "sign": "⛹"
  86. },
  87. "leisure=summer_camp": {
  88. "priority": 10,
  89. "sign": "🏕"
  90. },
  91. "leisure=indoor_play": {
  92. "priority": 8,
  93. "sign": "🏠"
  94. },
  95. "shop=baby_goods": {
  96. "priority": 8,
  97. "sign": "<i class=\"fa fa-shopping-cart\"></i>"
  98. },
  99. "shop=toys": {
  100. "priority": 8,
  101. "sign": "<i class=\"fa fa-shopping-cart\"></i>"
  102. },
  103. "amenity=toilets": {
  104. "priority": 6,
  105. "sign": "🚽🚼"
  106. },
  107. "playground=swing": {
  108. "priority": 4,
  109. "sign": ""
  110. },
  111. "default=yes": {
  112. "priority": 0,
  113. "sign": ""
  114. }
  115. }
  116. }