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.

68 lines
3.3 KiB

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