Main categories of OpenStreetBrowser with public transport zoom level
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.

87 lines
2.9 KiB

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