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.

93 lines
3.6 KiB

7 years ago
7 years ago
7 years ago
7 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Serviciu Públicu",
  5. "cs": "Veřejné služby",
  6. "de": "Öffentliche Dienste",
  7. "el": "Δημόσιες Υπηρεσίες",
  8. "en": "Public Services",
  9. "et": "Kommunaalteenused",
  10. "fr": "Services Publics",
  11. "hu": "Közszolgáltatások",
  12. "it": "Servizi pubblici",
  13. "ja": "公共サービス",
  14. "nl": "Openbare diensten",
  15. "pt": "Serviços públicos",
  16. "pt-br": "Serviços públicos",
  17. "ro": "Servicii publice",
  18. "ru": "Общественные места",
  19. "uk": "Громадські місця"
  20. },
  21. "query": {
  22. "12": [
  23. "(",
  24. "node[amenity~'^(embassy|public_building|townhall)$'];",
  25. "way[amenity~'^(embassy|public_building|townhall)$'];",
  26. "relation[amenity~'^(embassy|public_building|townhall)$'];",
  27. "node[amenity=recycling][recyling_type=centre];",
  28. "way[amenity=recycling][recyling_type=centre];",
  29. "relation[amenity=recycling][recyling_type=centre];",
  30. "nwr[office~\"^(government|administration)$\"];",
  31. ");"
  32. ],
  33. "16": [
  34. "(",
  35. "node[amenity~'^(embassy|public_building|townhall|clock|drinking_water|recycling|toilets)$'];",
  36. "way[amenity~'^(embassy|public_building|townhall|recycling|toilets)$'];",
  37. "relation[amenity~'^(embassy|public_building|townhall|recycling|toilets)$'];",
  38. "node[drinking_water];",
  39. "nwr[office~\"^(government|administration)$\"];",
  40. ");"
  41. ]
  42. },
  43. "feature": {
  44. "pre": [
  45. "{% if tags.drinking_water %}",
  46. "{% set key = 'amenity' %}",
  47. "{% set value = 'drinking_water' %}",
  48. "{% elseif tags.amenity %}",
  49. "{% set key = 'amenity' %}",
  50. "{% set value = tags.amenity %}",
  51. "{% elseif tags.office %}",
  52. "{% set key = 'office' %}",
  53. "{% set value = tags.office %}",
  54. "{% endif %}"
  55. ],
  56. "title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', value)) }}",
  57. "description": [
  58. "{% if key == 'office' %}",
  59. " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
  60. "{% else %}",
  61. " {{ tagTrans(key, value) }}",
  62. "{% endif %}"
  63. ],
  64. "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
  65. "markerSign": [
  66. "{% set kv = key ~ '=' ~ value %}",
  67. "{% if const[kv] %}",
  68. "{{ const[kv]|raw }}",
  69. "{% endif %}"
  70. ]
  71. },
  72. "info": [
  73. "<table>",
  74. "{% for value, sign in const %}",
  75. " <tr>",
  76. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
  77. " <td>{{ tagTrans('amenity', value) }}</td>",
  78. " </tr>",
  79. "{% endfor %}",
  80. "</table>"
  81. ],
  82. "const": {
  83. "amenity=clock": "<i class='fa fa-clock-o' aria-hidden='true'></i>",
  84. "amenity=drinking_water": "<img data-src='maki:drinking-water'>",
  85. "amenity=embassy": "<img data-src='maki:embassy'>",
  86. "amenity=public_building": "<img data-src='maki:building'>",
  87. "amenity=recycling": "<img data-src='maki:recycling'>",
  88. "amenity=toilets": "<img data-src='maki:toilet'>",
  89. "amenity=townhall": "<img data-src='maki:town-hall'>",
  90. "office=administration": "<img data-src='maki:town-hall'>",
  91. "office=government": "<img data-src='maki:town-hall'>"
  92. }
  93. }