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.

88 lines
2.9 KiB

  1. {
  2. "type": "overpass",
  3. "name:en": "Shopping",
  4. "query": {
  5. "14": "(node[shop~'^(mall|department_store)$'];way[shop~'^(mall|department_store)$'];relation[shop~'^(mall|department_store)$'];);",
  6. "16": "(node[shop];way[shop];relation[shop];);"
  7. },
  8. "minZoom": 14,
  9. "feature": {
  10. "pre": "{% set shop0 = tags.shop|split(';')[0] %}{% set current = const.default %}{% for v in const.shops %}{% if shop0 in v.types %}{% set current = v %}{% endif %}{% endfor %}",
  11. "body": "{{ tagTransList('shop', tags.shop) }}",
  12. "description": "{{ tagTransList('shop', tags.shop) }}",
  13. "markerSign": "{% set c = current.sign %}{% if c|slice(0, 3) == 'fa-' %}<i class=\"fa {{ c }}\"></i>{% else %}{{ c|raw }}{% endif %}",
  14. "__": "need better icons for: bakery, butcher, cheese, ice_cream, ",
  15. "__": "no icons for: brewing_supplies, charity, second_hand, variety_store"
  16. },
  17. "const": {
  18. "default": {
  19. "sign": "fa-shopping-bag"
  20. },
  21. "shops": [
  22. {
  23. "types": [ "alcohol", "beverages" ],
  24. "sign": "fa-beer"
  25. },
  26. {
  27. "types": [ "baby_goods" ],
  28. "sign": "&#128700;"
  29. },
  30. {
  31. "types": [ "bag", "general" ],
  32. "sign": "fa-shopping-bag"
  33. },
  34. {
  35. "types": [ "bakery", "confectionery", "pastry" ],
  36. "sign": "fa-birthday-cake"
  37. },
  38. {
  39. "types": [ "boutique", "clothes", "fabric", "fashion", "leather", "sewing", "tailor" ],
  40. "sign": "&#128090;"
  41. },
  42. {
  43. "types": [ "butcher", "cheese", "chocolate", "deli", "dairy", "farm", "greengrocer", "pasta", "spices" ],
  44. "sign": "fa-cutlery"
  45. },
  46. {
  47. "types": [ "coffee", "tea" ],
  48. "sign": "fa-coffee"
  49. },
  50. {
  51. "types": [ "convenience" ],
  52. "sign": "fa-shopping-basket"
  53. },
  54. {
  55. "types": [ "department_store", "mall" ],
  56. "sign": "fa-building"
  57. },
  58. {
  59. "types": [ "hairdresser" ],
  60. "sign": "&#128113;"
  61. },
  62. {
  63. "types": [ "ice_cream" ],
  64. "sign": "&#127848;"
  65. },
  66. {
  67. "types": [ "jewelry" ],
  68. "sign": "&#128141;"
  69. },
  70. {
  71. "types": [ "kiosk" ],
  72. "sign": "fa-newspaper-o"
  73. },
  74. {
  75. "types": [ "shoes" ],
  76. "sign": "&#128095;"
  77. },
  78. {
  79. "types": [ "supermarket" ],
  80. "sign": "fa-shopping-cart"
  81. },
  82. {
  83. "types": [ "watches" ],
  84. "sign": "&#8986;"
  85. }
  86. ]
  87. }
  88. }