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.

93 lines
3.0 KiB

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