Main categories of OpenStreetBrowser with public transport zoom level
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.

65 lines
3.2 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Amenities",
  5. "de": "Einrichtungen"
  6. },
  7. "query": {
  8. "13": "(\nnode[amenity~\"^(bicycle_rental)$\"];\nway[amenity~\"^(bicycle_rental)$\"];\nrelation[amenity~\"^(bicycle_rental)$\"];\nnode[shop~\"^(bicycle)$\"];\nway[shop~\"^(bicycle)$\"];\nrelation[shop~\"^(bicycle)$\"];\n)",
  9. "16": "(\nnode[amenity~\"^(bicycle_.*|compressed_air)$\"];\nway[amenity~\"^(bicycle_.*|compressed_air)$\"];\nrelation[amenity~\"^(bicycle_.*|compressed_air)$\"];\nnode[shop~\"^(bicycle)$\"];\nway[shop~\"^(bicycle)$\"];\nrelation[shop~\"^(bicycle)$\"];\nnode[\"monitoring:bicycle\"];\nway[\"monitoring:bicycle\"];\nrelation[\"monitoring:bicycle\"];\nnode[vending~\"^(bicycle_tube)$\"];\nway[vending~\"^(bicycle_tube)$\"];\nrelation[vending~\"^(bicycle_tube)$\"];\n)\n"
  10. },
  11. "feature": {
  12. "pre": "{% if tags.shop in [ 'bicycle' ] %}\n {% set key = 'shop' %}\n {% set value = tags.shop %}\n{% elseif attribute(tags, \"monitoring:bicycle\") %}\n {% set key = 'man_made' %}\n {% set value = 'monitoring_station' %}\n{% elseif tags.vending in [ 'bicycle_tube' ] %}\n {% set key = 'vending' %}\n {% set value = tags.vending %}\n{% else %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% endif %}\n\n{% set constIndex = (key ~ \"=\" ~ value) %}",
  13. "description": "{{ tagTrans(key, value) }}",
  14. "body": "{% if tags.capacity %}\n {{ keyTrans('capacity') }}: {{ tags.capacity }}\n{% endif %}",
  15. "markerSign": "{{ const[constIndex]['sign'] }}",
  16. "title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}\n\n{% if tags.capacity %}({{ tags.capacity }}){% endif %}",
  17. "priority": "{% if const[constIndex] and const[constIndex]['priority']['capacity'] %}\n {% set max=const[constIndex]['priority']['default'] %}\n {% for v in const[constIndex]['priority']['capacity'] %}\n {% if tags.capacity >= v[0] %}{% set max=v[1] %}{% endif %}\n {% endfor %}\n {{ max }}\n{% elseif const[constIndex] is defined %}\n{{ const[constIndex]['priority'] }}\n{% else %}\n10\n{% endif %}"
  18. },
  19. "const": {
  20. "shop=bicycle": {
  21. "sign": "🚲",
  22. "priority": 0
  23. },
  24. "amenity=bicycle_repair_station": {
  25. "sign": "🔧",
  26. "priority": 2
  27. },
  28. "amenity=bicycle_parking": {
  29. "sign": "🅿",
  30. "priority": {
  31. "capacity": [
  32. [
  33. 0,
  34. 3
  35. ],
  36. [
  37. 20,
  38. 2
  39. ],
  40. [
  41. 100,
  42. 0
  43. ]
  44. ],
  45. "default": 3
  46. }
  47. },
  48. "amenity=bicycle_rental": {
  49. "sign": "R",
  50. "priority": 1
  51. },
  52. "man_made=monitoring_station": {
  53. "sign": "#",
  54. "priority": 4
  55. },
  56. "vending=bicycle_tube": {
  57. "sign": "T",
  58. "priority": 2
  59. },
  60. "amenity=compressed_air": {
  61. "sign": "A",
  62. "priority": 2
  63. }
  64. }
  65. }