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.

70 lines
3.4 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "de": "Rauchfreie Gastronomie",
  5. "en": "Smokefree Gastronomy",
  6. "fr": "Restauration sans tabac",
  7. "hu": "Nem dohányzó vendéglátóhelyek",
  8. "pt": "Restauração livre de tabaco",
  9. "pt-br": "Gastronomia sem fumo"
  10. },
  11. "query": {
  12. "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)$'];);"
  13. },
  14. "feature": {
  15. "pre": [
  16. "{% if tags.smoking == 'yes' or tags.smoking == 'dedicated' %}",
  17. " {% set smoking_color='red' %}",
  18. " {% set smoking_icon='🚬' %}",
  19. "{% elseif tags.smoking == 'separated' or tags.smoking == 'isolated' %}",
  20. " {% set smoking_color='#ffdf00' %}",
  21. " {% set smoking_icon='🚬' %}",
  22. "{% elseif tags.smoking == 'no' or tags.smoking == 'outside' or tags.smokefree == 'yes' %}",
  23. " {% set smoking_color='#00ff00' %}",
  24. " {% set smoking_icon='🚭' %}",
  25. "{% else %}",
  26. " {% set smoking_color='white' %}",
  27. " {% set smoking_icon='' %}",
  28. "{% endif %}"
  29. ],
  30. "description": "{{ tagTrans('amenity', tags.amenity) }}",
  31. "body": [
  32. "<ul>",
  33. " <li class='hasSymbol'>",
  34. " <i class=\"fa fa-cutlery\" aria-hidden=\"true\"></i>",
  35. " <span class='key'>{{ keyTrans('cuisine') }}:</span>",
  36. " <span class='value'>{{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}</span>",
  37. " </li>",
  38. " <li class='hasSymbol'>",
  39. " <span class='symbol'>🚬</span>",
  40. " <span class='key'>{{ keyTrans('smoking') }}:</span>",
  41. " <span class='value'>{% if tags.smoking %}{{ tagTrans('smoking', tags.smoking) }}{% else %}{{ trans('unknown') }}{% endif %}</span>",
  42. " </li>",
  43. "</ul>"
  44. ],
  45. "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 %}",
  46. "markerSymbol": "{{ markerPointer({\"fillColor\": smoking_color })|raw }}",
  47. "listMarkerSymbol": "{{ markerCircle({\"fillColor\": smoking_color })|raw }}"
  48. },
  49. "info": [
  50. "{{ keyTrans('smoking') }}:",
  51. "<table>",
  52. " <tr>",
  53. " <td>{{ markerCircle({ \"fillColor\": \"#00ff00\" })|raw }}</td>",
  54. " <td>{{ tagTrans('smoking', 'no') }}, {{ tagTrans('smoking', 'outside') }}</td>",
  55. " </tr>",
  56. " <tr>",
  57. " <td>{{ markerCircle({ \"fillColor\": \"#ffdf00\" })|raw }}</td>",
  58. " <td>{{ tagTrans('smoking', 'separated') }}, {{ tagTrans('smoking', 'isolated') }}</td>",
  59. " </tr>",
  60. " <tr>",
  61. " <td>{{ markerCircle({ \"fillColor\": \"red\" })|raw }}</td>",
  62. " <td>{{ tagTrans('smoking', 'yes') }}, {{ tagTrans('smoking', 'dedicated') }}</td>",
  63. " </tr>",
  64. " <tr>",
  65. " <td>{{ markerCircle({ \"fillColor\": \"white\" })|raw }}</td>",
  66. " <td>{{ trans('unknown') }}</td>",
  67. " </tr>",
  68. "</table>"
  69. ]
  70. }