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.

82 lines
3.3 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ca": "Rutes en cotxe",
  5. "cs": "Automobilové cesty",
  6. "de": "Autorouten",
  7. "en": "Car routes",
  8. "es": "Rutas de coche",
  9. "fr": "Itinéraires auto",
  10. "gl": "Rotas automobilísticas",
  11. "hu": "Főútvonalak",
  12. "it": "Tratte automobilistiche",
  13. "ja": "車のルート",
  14. "nb": "Bilruter",
  15. "nl": "Autoroutes",
  16. "oc": "Itineraris auto",
  17. "pl": "Trasy samochodowe",
  18. "pt": "Rotas rodoviárias",
  19. "pt-br": "Rotas rodoviárias",
  20. "ro": "Rute auto",
  21. "ru": "Автомобильные маршруты",
  22. "sr": "Трасе за возила",
  23. "tr": "Araba Rotaları"
  24. },
  25. "query": {
  26. "10": "relation[type=route][route=road]"
  27. },
  28. "members": true,
  29. "feature": {
  30. "pre": "{% set color = '#' ~ tags.network|default('')|md5|slice(0, 6) %}",
  31. "description": "{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}",
  32. "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
  33. "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}",
  34. "markerSymbol": "",
  35. "styles": ""
  36. },
  37. "memberFeature": {
  38. "pre": [
  39. "{% set refs = [] %}",
  40. "{% set color = '#d41d8c' %}",
  41. "{% if tags.ref %}",
  42. " {% for ref in tags.ref|split(';') %}",
  43. " {% set refs = refs|merge([ ref|trim ]) %}",
  44. " {% endfor %}",
  45. "{% endif %}",
  46. "",
  47. "{% for master in masters %}",
  48. " {% if master.tags.network %}",
  49. " {% set color = '#' ~ master.tags.network|md5|slice(0, 6) %}",
  50. " {% endif %}",
  51. " {% if master.tags.ref %}",
  52. " {% set refs = refs|merge([ master.tags.ref ]) %}",
  53. " {% endif %}",
  54. "{% endfor %}",
  55. "",
  56. "{% set refs = refs|unique|natsort({ insensitive: true }) %}"
  57. ],
  58. "body": [
  59. "<h4>Routes</h4>",
  60. "<ul>",
  61. "{% for master in masters %}",
  62. " {% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %}",
  63. " <li data-object=\"{{ master.id }}\" style='list-style: none;'>",
  64. " <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: _color })|raw }}</div></span>",
  65. " <span class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</span>",
  66. " <span class='description'>{{ tagTrans('network', master.tags.network) }}</span>",
  67. " </li>",
  68. "{% endfor %}",
  69. "</ul>"
  70. ],
  71. "listExclude": "1",
  72. "style": {
  73. "color": "{{ color }}",
  74. "width": 4,
  75. "opacity": 1,
  76. "text": "{{ refs|join(' · ') }} ",
  77. "textRepeat": "1",
  78. "textOffset": "12",
  79. "textFontWeight": "bold"
  80. }
  81. }
  82. }