A repository for testing purposes.
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.

40 lines
1.1 KiB

  1. query:
  2. 12: |
  3. (
  4. node[~"^red_turn:.*:bicycle$"~"^(yes|stop)$"];
  5. relation["restriction:bicycle"="give_way"];
  6. relation["restriction:bicycle"="stop"];
  7. )
  8. members: true
  9. feature:
  10. title: |
  11. {{ tagTrans('highway', tags.highway) }}
  12. body: |
  13. <ul>
  14. {% for k, v in tags %}
  15. {% if k|matches('^red_turn:.*:bicycle$') and v in ['yes', 'stop'] %}<li>{{ k }}={{ v }}</li>{% endif %}
  16. {% endfor %}
  17. </ul>
  18. exclude: |
  19. {{ type == 'relation' }}
  20. memberFeature:
  21. title: |
  22. {{ tagTrans('highway', tags.highway) }}
  23. exclude: |
  24. {% set isVia = false %}
  25. {% set restriction = null %}
  26. {% for master in masters %}
  27. {% if attribute(master.tags, 'restriction:bicycle') in ['give_way', 'stop'] and master.role == 'via' %}
  28. {% set isVia = true %}
  29. {% set restriction = attribute(master.tags, 'restriction:bicycle') %}
  30. {% endif %}
  31. {% endfor %}
  32. {{ not isVia }}
  33. body: |
  34. <ul>
  35. <li>restriction:bicycle={{ restriction }}</li>
  36. </ul>
  37. markerSymbol: |
  38. {{ markerPointer({})|raw }}
  39. listMarkerSymbol: |
  40. {{ markerCircle({})|raw }}