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.

115 lines
5.6 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Gastronomía",
  5. "cs": "Stravování",
  6. "de": "Gastronomie",
  7. "el": "Γαστρονομία",
  8. "en": "Gastronomy",
  9. "fr": "Restauration",
  10. "hu": "Vendéglátás",
  11. "it": "Gastronomia",
  12. "ja": "食べ物",
  13. "nl": "Gastronomie",
  14. "pl": "Gastronomia",
  15. "pt": "Restauração",
  16. "pt-br": "Gastronomia",
  17. "ro": "Gastronomie",
  18. "ru": "Общепит",
  19. "uk": "Гастрономія"
  20. },
  21. "query": {
  22. "16": "(node[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];way[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];relation[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];);"
  23. },
  24. "feature": {
  25. "description": "{{ tagTrans('amenity', tags.amenity) }}",
  26. "body": [
  27. "<ul>",
  28. " <li class='hasSymbol'>",
  29. " <i class=\"fa fa-cutlery\" aria-hidden=\"true\"></i>",
  30. " <span class='key'>{{ keyTrans('cuisine') }}:</span>",
  31. " <span class='value'>{{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}</span>",
  32. " </li>",
  33. " {% set diets = tagsPrefix(tags, 'diet:') %}",
  34. " {% if diets %}",
  35. " <li class='hasSymbol'>",
  36. " <i class=\"fa fa-cutlery\" aria-hidden=\"true\"></i>",
  37. " <span class='key'>{{ keyTrans('diet') }}:</span>",
  38. " <span class='value'>",
  39. " {% for kv, k in diets %}",
  40. " {% set v = tags[k] %}",
  41. " <span title='{{ k ~ '=' ~ v }}' style='white-space: nowrap; margin-right: 0.5em;'>{% if v == 'no' %}✘ {% elseif v == 'only' %}❗{% else %}✔{% endif %}{{ keyTrans(k) }}</span>",
  42. " {% endfor %}",
  43. " </span></li>",
  44. " {% endif %}",
  45. "</ul>"
  46. ],
  47. "markerSign": "{% if tags.amenity=='bar' %}&#127864;{% elseif tags.amenity=='biergarten'%}&#127867;{% elseif tags.amenity=='cafe' %}&#9749;{% elseif tags.amenity=='fast_food' %}&#127828;{% elseif tags.amenity=='ice_cream' %}&#127848;{% elseif tags.amenity=='pub' %}&#127866;{% else %}&#127860;{% endif %}"
  48. },
  49. "info": "{{ repoTrans('Objects with diet information') }}",
  50. "filter": {
  51. "amenity": {
  52. "name": "{{ keyTrans('amenity') }}",
  53. "type": "select",
  54. "values": [
  55. "bar",
  56. "biergarten",
  57. "cafe",
  58. "fast_food",
  59. "ice_cream",
  60. "pub",
  61. "restaurant"
  62. ],
  63. "valueName": "{{ tagTrans('amenity', value) }}",
  64. "op": "="
  65. },
  66. "cuisine_food": {
  67. "name": "{{ keyTrans('cuisine/food') }}",
  68. "type": "select",
  69. "key": "cuisine",
  70. "values": [ "barbecue", "burger", "casserole", "chicken", "couscous", "curry", "fish", "fish_and_chips", "fried_food", "friture", "gyros", "kebab", "noodle", "pasta", "pizza", "sandwich", "sausage", "seafood", "soup", "steak_house", "sub", "sushi", "tapas", "wings" ],
  71. "valueName": "{{ tagTrans('cuisine', value) }}",
  72. "op": "has"
  73. },
  74. "cuisine_dessert": {
  75. "name": "{{ keyTrans('cuisine/dessert') }}",
  76. "type": "select",
  77. "key": "cuisine",
  78. "values": [ "bagel", "biscuit", "bougatsa", "cake", "coffee_shop", "cookie", "crepe", "dessert", "donut", "empanada", "frozen_yogurt", "gingerbread", "ice_cream", "chimney_cake", "langos", "pancake", "pastry", "petit_four", "pie", "pogacha", "poppy_seed_roll", "profiterole", "punch_cake", "savory_pancakes", "strudel", "teahouse", "waffle" ],
  79. "valueName": "{{ tagTrans('cuisine', value) }}",
  80. "op": "has"
  81. },
  82. "cuisine_ethnicity": {
  83. "name": "{{ keyTrans('cuisine/ethnicity') }}",
  84. "type": "select",
  85. "key": "cuisine",
  86. "values": [ "afghan", "african", "american", "arab", "argentinian", "asian", "australian", "baiana", "balkan", "basque", "bavarian", "belarusan", "bolivian", "brazilian", "cantonese", "capixaba", "caribbean", "chinese", "croatian", "czech", "danish", "french", "gaucho", "german", "greek", "hawaiian", "hunan", "hungarian", "indian", "international", "iranian", "italian", "japanese", "jewish", "korean", "kyo_ryouri", "latin_american", "lebanese", "malagasy", "mediterranean", "mexican", "mineira", "new_mexican", "okinawa_ryori", "pakistani", "peruvian", "polish", "portuguese", "regional", "rhenish", "russian", "shandong", "sichuan", "spanish", "texan", "tex-mex", "thai", "turkish", "vietnamese", "westphalian" ],
  87. "valueName": "{{ tagTrans('cuisine', value) }}",
  88. "op": "has"
  89. },
  90. "diet": {
  91. "name": "{{ keyTrans('diet') }}",
  92. "type": "select",
  93. "values": {
  94. "*": {
  95. "name": "{{ repoTrans('Objects with diet information') }}",
  96. "query": "nwr[~\"^diet:\"~\".\"]"
  97. },
  98. "diet:vegan": {},
  99. "diet:vegetarian": {},
  100. "diet:pescetarian": {},
  101. "diet:lacto_vegetarian": {},
  102. "diet:ovo_vegetarian": {},
  103. "diet:fruitarian": {},
  104. "diet:raw": {},
  105. "diet:gluten_free": {},
  106. "diet:dairy_free": {},
  107. "diet:lactose_free": {},
  108. "diet:halal": {},
  109. "diet:kosher": {}
  110. },
  111. "valueName": "{{ keyTrans(value) }}",
  112. "op": "has_key_value"
  113. }
  114. }
  115. }