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.

80 lines
3.8 KiB

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. "filter": {
  50. "amenity": {
  51. "name": "{{ keyTrans('amenity') }}",
  52. "type": "select",
  53. "values": [
  54. "bar",
  55. "biergarten",
  56. "cafe",
  57. "fast_food",
  58. "ice_cream",
  59. "pub",
  60. "restaurant"
  61. ],
  62. "valueName": "{{ tagTrans('amenity', value) }}",
  63. "op": "="
  64. },
  65. "cuisine": {
  66. "name": "{{ keyTrans('cuisine') }}",
  67. "type": "select",
  68. "values": [ "afghan", "arab", "asian", "australian", "austrian", "barbecue", "burger", "cake", "caribbean", "caribean", "chinese", "coffee", "coffee_shop", "crepe", "empanada", "fish_and_chips", "french", "fried_food", "friture", "greek", "gyros", "ice_cream", "indian", "international", "italian", "japanese", "juice", "kebab", "korean", "local", "mexican", "noodles", "pasta", "pie", "pizza", "regional", "salad", "sandwich", "sausage", "seafood", "soup", "spanish", "steak_house", "sushi", "thai", "turkish", "vegan", "vegetarian", "vietnamese" ],
  69. "valueName": "{{ tagTrans('cuisine', value) }}",
  70. "op": "has"
  71. },
  72. "diet": {
  73. "name": "{{ keyTrans('diet') }}",
  74. "type": "select",
  75. "values": [ "diet:vegan", "diet:vegetarian", "diet:pescetarian", "diet:lacto_vegetarian", "diet:ovo_vegetarian", "diet:fruitarian", "diet:raw", "diet:gluten_free", "diet:dairy_free", "diet:lactose_free", "diet:halal", "diet:kosher" ],
  76. "valueName": "{{ keyTrans(value) }}",
  77. "op": "has_key_value"
  78. }
  79. }
  80. }