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.

102 lines
4.5 KiB

  1. type: "overpass"
  2. query:
  3. 15: |
  4. (
  5. nwr[historic];
  6. nwr[tourism~'^(attraction|artwork)$'];
  7. nwr[heritage];
  8. nwr[amenity~'^(fountain|arts_centre)$'];
  9. )
  10. feature:
  11. pre: |
  12. {% set color = 'red' %}
  13. {% set str = 'No image, wikimedia_commons or wikidata' %}
  14. {% if tags.wikidata %}
  15. {% set color = 'blue' %}
  16. {% set str = 'has wikidata tag' %}
  17. {% set wikidata = tags.wikidata|wikidataEntity %}
  18. {% if wikidata.claims.P31[0].mainsnak.datavalue.value.id in ['Q5'] %}
  19. {% set color = 'magenta' %}
  20. {% set str = "wikidata points to a human, should most likely be 'subject:wikidata'" %}
  21. {% endif %}
  22. {% elseif tags.wikimedia_commons or tags.image %}
  23. {% set color = 'cyan' %}
  24. {% set str = tags.wikimedia_commons ? 'has wikimedia_commons tag' : 'has image tag' %}
  25. {% endif %}
  26. body: |
  27. {{ str }}
  28. style:
  29. color: |
  30. {{ color }}
  31. description: |
  32. {% if tags.historic and tags.historic != 'yes' %}
  33. {{ tagTransList('historic', tags.historic) }}
  34. {% if tags.historic == 'memorial' and tags.memorial %}
  35. ({{ tagTransList('memorial', tags.memorial) }})
  36. {% endif %}
  37. {% elseif tags.tourism %}
  38. {{ tagTransList('tourism', tags.tourism) }}
  39. {% elseif tags.amenity %}
  40. {{ tagTrans('amenity', tags.amenity) }}
  41. {% elseif tags.heritage %}
  42. {{ keyTrans('heritage') }}
  43. {% endif %}
  44. markerSymbol: "{{ markerPointer({ fillColor: color })|raw }}"
  45. listMarkerSymbol: "{{ markerCircle({ fillColor: color })|raw }}"
  46. filter:
  47. type:
  48. name: "{{ trans('filter:type') }}"
  49. show_default: "true"
  50. query: "nwr[{{ value }}]"
  51. type: "select"
  52. key: "tourism"
  53. values: |
  54. <option value='tourism-artwork' query='nwr[tourism=artwork]'>{{ tagTrans('tourism', 'artwork') }}</option>
  55. <option value='tourism-attraction' query='nwr[tourism=attraction]'>{{ tagTrans('tourism', 'attraction') }}</option>
  56. <option value='historic-memorial' query='nwr[historic=memorial]'>{{ tagTrans('historic', 'memorial') }}</option>
  57. <option value='historic-monument' query='nwr[historic=monument]'>{{ tagTrans('historic', 'monument') }}</option>
  58. <option value='historic-wayside_cross' query='nwr[historic=wayside_cross]'>{{ tagTrans('historic', 'wayside_cross') }}</option>
  59. <option value='historic-wayside_shrine' query='nwr[historic=wayside_shrine]'>{{ tagTrans('historic', 'wayside_shrine') }}</option>
  60. <option value='historic-building' query='nwr[historic=building]'>{{ tagTrans('historic', 'building') }}</option>
  61. <option value='historic-other' query='nwr[historic][historic!~"^(memorial|monument|wayside_cross|wayside_shrine|building)$"]'>{{ keyTrans('historic') }} {{ trans('other') }}</option>
  62. <option value='fountain' query='nwr[amenity=fountain]'>{{ tagTrans('amenity', 'fountain') }}</option>
  63. <option value='arts_centre' query='nwr[amenity=arts_centre]'>{{ tagTrans('amenity', 'arts_centre') }}</option>
  64. <option value='heritage' query='nwr[heritage]'>{{ keyTrans('heritage') }}</option>
  65. op: "has"
  66. info: |
  67. <table>
  68. <tr>
  69. <td>
  70. {{ markerCircle({ fillColor: 'red' })|raw }}
  71. </td>
  72. <td>No image, wikimedia_commons or wikidata</td>
  73. </tr>
  74. <tr>
  75. <td>
  76. {{ markerCircle({ fillColor: 'magenta' })|raw }}
  77. </td>
  78. <td>wikidata tag points to a human, should most likely be 'subject:wikidata'</td>
  79. </tr>
  80. <tr>
  81. <td>
  82. {{ markerCircle({ fillColor: 'cyan' })|raw }}
  83. </td>
  84. <td>image or wikimedia_commons tag but no wikidata</td>
  85. </tr>
  86. <tr>
  87. <td>
  88. {{ markerCircle({ fillColor: 'blue' })|raw }}
  89. </td>
  90. <td>has wikidata tag</td>
  91. </tr>
  92. </table>
  93. This category lists artwork, memorials, historic and heritage protected objects. These should have an <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:image">image</a> or <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikimedia_commons">wikimedia_commons</a> tag, or (even better) a <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikidata">wikidata</a> tag pointing to the object's entry.<br>
  94. Memorials erroneously often have a wikidata (and wikipedia) tag of the person/event, which should be changed to <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikidata#Secondary_Wikidata_links">subject:wikidata</a> resp. <a target="_blank" href="https://wiki.openstreetmap.org/wiki/Key:wikipedia#Secondary_Wikipedia_links">subject:wikipedia</a>".