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.

75 lines
2.8 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. "it": "Servizi pubblici",
  12. "ja": "公共サービス",
  13. "nl": "Openbare diensten",
  14. "ro": "Servicii publice",
  15. "ru": "Общественные места",
  16. "uk": "Громадські місця"
  17. },
  18. "query": {
  19. "12": [
  20. "(",
  21. "node[amenity~'^(courthouse|embassy|public_building|townhall)$'];",
  22. "way[amenity~'^(courthouse|embassy|public_building|townhall)$'];",
  23. "relation[amenity~'^(courthouse|embassy|public_building|townhall)$'];",
  24. "node[amenity=recycling][recyling_type=centre];",
  25. "way[amenity=recycling][recyling_type=centre];",
  26. "relation[amenity=recycling][recyling_type=centre];",
  27. ");"
  28. ],
  29. "16": [
  30. "(",
  31. "node[amenity~'^(courthouse|embassy|public_building|townhall|clock|drinking_water|recycling|toilets)$'];",
  32. "way[amenity~'^(courthouse|embassy|public_building|townhall|recycling|toilets)$'];",
  33. "relation[amenity~'^(courthouse|embassy|public_building|townhall|recycling|toilets)$'];",
  34. "node[drinking_water];",
  35. ");"
  36. ]
  37. },
  38. "feature": {
  39. "pre": [
  40. "{% if tags.drinking_water %}",
  41. "{% set value = 'drinking_water' %}",
  42. "{% else %}",
  43. "{% set value = tags.amenity %}",
  44. "{% endif %}"
  45. ],
  46. "title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', value)) }}",
  47. "description": "{{ tagTrans('amenity', value) }}",
  48. "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ tags.operator }}<br/>{% endif %}",
  49. "markerSign": [
  50. "{% if const[value] %}",
  51. "{{ const[value]|raw }}",
  52. "{% endif %}"
  53. ]
  54. },
  55. "info": [
  56. "<table>",
  57. "{% for value, sign in const %}",
  58. " <tr>",
  59. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign|raw }}</div></td>",
  60. " <td>{{ tagTrans('amenity', value) }}</td>",
  61. " </tr>",
  62. "{% endfor %}",
  63. "</table>"
  64. ],
  65. "const": {
  66. "courthouse": "⚖",
  67. "clock": "<i class='fa fa-clock-o' aria-hidden='true'></i>",
  68. "drinking_water": "<img src='maki:drinking-water'>",
  69. "embassy": "<img src='maki:embassy'>",
  70. "public_building": "<img src='maki:building'>",
  71. "recycling": "<img src='maki:recycling'>",
  72. "toilets": "<img src='maki:toilet'>",
  73. "townhall": "<img src='maki:town-hall'>"
  74. }
  75. }