Main categories of OpenStreetBrowser with support for whitewater
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.

37 lines
1.7 KiB

  1. {
  2. "name": {
  3. "ast": "Llugares",
  4. "cs": "Sídla",
  5. "de": "Orte",
  6. "el": "Μέρη",
  7. "en": "Places",
  8. "et": "Kohad",
  9. "fr": "Place",
  10. "hu": "Helyek",
  11. "it": "Luoghi",
  12. "ja": "場所",
  13. "nl": "Plaatsen",
  14. "pl": "Miejsca",
  15. "ro": "Locuri",
  16. "ru": "Места",
  17. "uk": "Місцевість"
  18. },
  19. "type": "overpass",
  20. "query": {
  21. "0": "node[place~'^(continent)$']",
  22. "4": "node[place~'^(continent|country)$']",
  23. "6": "node[place~'^(country|city)$']",
  24. "8": "node[place~'^(country|city|state)$']",
  25. "11": "node[place~'^(city|state|region|town|village)$']",
  26. "13": "node[place~'^(city|state|region|town|village|suburb|hamlet|quarter)$']",
  27. "15": "node[place~'^(city|region|town|village|suburb|hamlet|quarter)$']",
  28. "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)$'];);"
  29. },
  30. "minZoom": 0,
  31. "feature": {
  32. "title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}",
  33. "body": "{{ tagTrans('place', tags.place) }}\n{% if tags.population %}<br/>{{ tagTrans('population') }}: {{ tags.population }}{% endif %} \n",
  34. "description": "{{ tagTrans('place', tags.place) }}",
  35. "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] }}"
  36. }
  37. }