Main categories of OpenStreetBrowser with support for whitewater
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.

91 lines
2.9 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Einrichtungen",
  5. "en": "Amenities"
  6. },
  7. "query": {
  8. "13": [
  9. "(",
  10. "node[highway~\"^(elevator)$\"];",
  11. "node[information];",
  12. "node[tourism~\"^(viewpoint)$\"];",
  13. "node[man_made~\"^(cairn)$\"];",
  14. "node[amenity~\"^(shelter)$\"];",
  15. "way[amenity~\"^(shelter)$\"];",
  16. "relation[amenity~\"^(shelter)$\"];",
  17. ")"
  18. ],
  19. "17": [
  20. "(",
  21. "node[highway~\"^(crossing|elevator)$\"];",
  22. "node[information];",
  23. "node[tourism~\"^(viewpoint)$\"];",
  24. "node[man_made~\"^(cairn)$\"];",
  25. "node[amenity~\"^(shelter)$\"];",
  26. "way[amenity~\"^(shelter)$\"];",
  27. "relation[amenity~\"^(shelter)$\"];",
  28. ")"
  29. ]
  30. },
  31. "feature": {
  32. "pre": [
  33. "{% if tags.information %}",
  34. " {% set key = 'information' %}",
  35. " {% set value = tags.information %}",
  36. "{% elseif tags.amenity in [ 'bench', 'shelter' ] %}",
  37. " {% set key = 'amenity' %}",
  38. " {% set value = tags.amenity %}",
  39. "{% elseif tags.man_made in [ 'cairn' ] %}",
  40. " {% set key = 'man_made' %}",
  41. " {% set value = tags.man_made %}",
  42. "{% elseif tags.tourism in [ 'viewpoint'] %}",
  43. " {% set key = 'tourism' %}",
  44. " {% set value = tags.tourism %}",
  45. "{% else %}",
  46. " {% set key = 'highway' %}",
  47. " {% set value = tags.highway %}",
  48. "{% endif %}",
  49. "",
  50. "{% set type_data = const[value] %}"
  51. ],
  52. "title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}",
  53. "description": "{{ tagTrans(key, value) }}",
  54. "markerSign": "{{ type_data.sign|raw }}",
  55. "priority": "{{ type_data.priority }}"
  56. },
  57. "const": {
  58. "crossing": {
  59. "priority": 10,
  60. "sign": "<i class='fa fa-bars' aria-hidden='true'></i>"
  61. },
  62. "elevator": {
  63. "priority": 2,
  64. "sign": "<i class='fa fa-caret-square-o-up' aria-hidden='true'></i>"
  65. },
  66. "guidepost": {
  67. "priority": 2,
  68. "sign": "<i class='fa fa-map-signs' aria-hidden='true'></i>"
  69. },
  70. "map": {
  71. "priority": 2,
  72. "sign": "<i class='fa fa-map' aria-hidden='true'></i>"
  73. },
  74. "board": {
  75. "priority": 2,
  76. "sign": ""
  77. },
  78. "office": {
  79. "priority": 1,
  80. "sign": "<i class='fa fa-info-circle' aria-hidden='true'></i>"
  81. },
  82. "cairn": {
  83. "priority": 2,
  84. "sign": ""
  85. },
  86. "shelter": {
  87. "priority": 1,
  88. "sign": "⌃"
  89. }
  90. }
  91. }