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.

21 lines
1.4 KiB

  1. {
  2. "type": "overpass",
  3. "name:en": "Places",
  4. "query": {
  5. "0": "node[place~'^(continent)$']",
  6. "4": "node[place~'^(continent|country)$']",
  7. "6": "node[place~'^(country|city)$']",
  8. "8": "node[place~'^(country|city|state)$']",
  9. "11": "node[place~'^(city|state|region|town|village)$']",
  10. "13": "node[place~'^(city|state|region|town|village|suburb|hamlet|quarter)$']",
  11. "15": "node[place~'^(city|region|town|village|suburb|hamlet|quarter)$']",
  12. "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)$'];);"
  13. },
  14. "minZoom": 0,
  15. "feature": {
  16. "title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}",
  17. "body": "{{ tagTrans('place', tags.place) }}\n{% if tags.population %}<br/>{{ tagTrans('population') }}: {{ tags.population }}{% endif %} \n",
  18. "description": "{{ tagTrans('place', tags.place) }}",
  19. "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] }}"
  20. }
  21. }