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.

76 lines
2.8 KiB

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