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.

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