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.

92 lines
3.0 KiB

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