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.

85 lines
5.9 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Llugares",
  5. "cs": "Sídla",
  6. "de": "Orte",
  7. "el": "Μέρη",
  8. "en": "Places",
  9. "et": "Kohad",
  10. "fr": "Lieux",
  11. "hu": "Helyek",
  12. "it": "Luoghi",
  13. "ja": "場所",
  14. "nl": "Plaatsen",
  15. "pl": "Miejsca",
  16. "pt": "Lugares",
  17. "pt-br": "Lugares",
  18. "ro": "Locuri",
  19. "ru": "Места",
  20. "uk": "Місцевість"
  21. },
  22. "query": {
  23. "0": "node[place~'^(continent)$']",
  24. "4": "node[place~'^(continent|country)$']",
  25. "6": "node[place~'^(country|city)$']",
  26. "8": "node[place~'^(country|city|state)$']",
  27. "9": "node[place~'^(country|city|state|town)$']",
  28. "11": "node[place~'^(city|state|region|town|village)$']",
  29. "12": "node[place~'^(city|state|region|town|village|suburb)$']",
  30. "13": "node[place~'^(city|state|region|town|village|suburb|hamlet|quarter)$']",
  31. "15": "node[place~'^(city|region|town|village|suburb|hamlet|quarter)$']",
  32. "16": "(node[place~'^(region|town|village|suburb|hamlet|quarter|islet|isolated_dwelling|neighbourhood|farm)$'];way[place~'^(isolated_dwelling|neighbourhood|farm)$'];relation[place~'^(isolated_dwelling|neighbourhood|farm)$'];);"
  33. },
  34. "feature": {
  35. "styles": "",
  36. "pre": "{% if tags.place in const[map.zoom] %}{% set style = const[map.zoom][tags.place] %}{% else %}{% set style = const[map.zoom]['*'] %}{% endif %}",
  37. "title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}",
  38. "description": "{{ tagTrans('place', tags.place) }}",
  39. "body": "{% if tags.population %}{{ keyTrans('population') }}: {{ tags.population }}{% endif %}",
  40. "priority": "{% set priorities = { 'continent': 0, 'country': 1, 'state': 2, 'region': 3, 'city': 4, 'town': 5, 'village': 6, 'suburb': 7, 'hamlet': 8, 'quarter': 9, neighbourhood: 10, 'isolated_dwelling': 11, 'farm': 12 } %}{{ priorities[tags.place] }}",
  41. "markerSymbol": "",
  42. "markerSign": "<span style='background: #ffffffaf; padding: 2px; {{ style }}'>{{ localizedTag(tags, 'name') }}</span>",
  43. "listMarkerSymbol": "",
  44. "listMarkerSign": "*"
  45. },
  46. "const": {
  47. "0": { "continent": "font-weight: bold;" },
  48. "1": { "continent": "font-weight: bold;" },
  49. "2": { "continent": "font-weight: bold;" },
  50. "3": { "continent": "font-weight: bold;" },
  51. "4": { "continent": "font-weight: bold;", "country": "font-size: 8pt; font-weight: bold;" },
  52. "5": { "continent": "font-weight: bold;", "country": "font-size: 8pt; font-weight: bold;" },
  53. "6": { "country": "font-weight: bold;", "city": "font-size: 8pt" },
  54. "7": { "country": "font-weight: bold;", "city": "font-size: 8pt" },
  55. "8": { "country": "font-weight: bold;", "city": "font-size: 9pt", "state": "font-size: 8pt; font-weight: bold;" },
  56. "9": { "country": "font-weight: bold;", "city": "font-size: 9pt", "state": "font-size: 8pt; font-weight: bold;", "town": "font-size: 6pt;" },
  57. "10": { "country": "font-weight: bold;", "city": "font-size: 8pt", "state": "font-size: 9pt; font-weight: bold;", "town": "font-size: 7pt;" },
  58. "11": { "city": "", "state": "font-weight: bold;", "region": "font-weight: bold; font-size: 8pt;", "town": "font-size: 8pt;", "village": "font-size: 6pt;" },
  59. "12": { "city": "", "state": "font-weight: bold;", "region": "font-weight: bold; font-size: 9pt;", "town": "font-size: 9pt;", "village": "font-size: 7pt;", "suburb": "font-size: 6pt;" },
  60. "13": { "city": "", "state": "font-weight: bold;", "region": "font-weight: bold;", "town": "font-size: 10pt;", "village": "font-size: 8pt;", "suburb": "font-size: 7pt;", "hamlet": "font-size: 6pt;", "quarter": "font-weight: bold; font-size: 6pt;" },
  61. "14": { "city": "", "state": "font-weight: bold;", "region": "font-weight: bold;", "town": "font-size: 10pt;", "village": "font-size: 8pt;", "suburb": "font-size: 7pt;", "hamlet": "font-size: 6pt;", "quarter": "font-weight: bold; font-size: 6pt;" },
  62. "15": { "city": "", "region": "font-weight: bold;", "town": "font-size: 10pt;", "village": "font-size: 9pt;", "suburb": "font-size: 8pt;", "hamlet": "font-size: 7pt;", "quarter": "font-weight: bold; font-size: 7pt;" },
  63. "16": { "region": "font-weight: bold;", "town": "font-size: 10pt;", "village": "font-size: 9pt;", "suburb": "font-size: 8pt;", "hamlet": "font-size: 7pt;", "quarter": "font-weight: bold; font-size: 7pt;", "*": "font-size: 6pt;" },
  64. "17": { "region": "font-weight: bold;", "town": "font-size: 10pt;", "village": "font-size: 9pt;", "suburb": "font-size: 8pt;", "hamlet": "font-size: 7pt;", "quarter": "font-weight: bold; font-size: 7pt;", "*": "font-size: 6pt;" },
  65. "18": { "region": "font-weight: bold;", "town": "font-size: 10pt;", "village": "font-size: 9pt;", "suburb": "font-size: 8pt;", "hamlet": "font-size: 7pt;", "quarter": "font-weight: bold; font-size: 7pt;", "*": "font-size: 6pt;" },
  66. "19": { "region": "font-weight: bold;", "town": "font-size: 10pt;", "village": "font-size: 9pt;", "suburb": "font-size: 8pt;", "hamlet": "font-size: 7pt;", "quarter": "font-weight: bold; font-size: 7pt;", "*": "font-size: 6pt;" },
  67. "20": { "region": "font-weight: bold;", "town": "font-size: 10pt;", "village": "font-size: 9pt;", "suburb": "font-size: 8pt;", "hamlet": "font-size: 7pt;", "quarter": "font-weight: bold; font-size: 7pt;", "*": "font-size: 6pt;" }
  68. },
  69. "info": [
  70. "<ul>",
  71. "{% for place, style in const[map.zoom] %}",
  72. " <li style='{{ style }}'>{{ tagTrans('place', place) }}</li>",
  73. "{% endfor %}",
  74. "</ul>"
  75. ],
  76. "filter": {
  77. "name": {
  78. "key": [ "name", "name:*", "official_name", "official_name:*", "alt_name", "alt_name:*" ],
  79. "show_default": "true",
  80. "name": "{{ keyTrans('name') }}",
  81. "type": "text",
  82. "op": "strsearch"
  83. }
  84. }
  85. }