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.

35 lines
895 B

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