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.

47 lines
2.0 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. "11": "node[place~'^(city|state|region|town|village)$']",
  28. "13": "node[place~'^(city|state|region|town|village|suburb|hamlet|quarter)$']",
  29. "15": "node[place~'^(city|region|town|village|suburb|hamlet|quarter)$']",
  30. "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)$'];);"
  31. },
  32. "feature": {
  33. "title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}",
  34. "description": "{{ tagTrans('place', tags.place) }}",
  35. "body": "{% if tags.population %}{{ keyTrans('population') }}: {{ tags.population }}{% endif %}",
  36. "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] }}"
  37. },
  38. "filter": {
  39. "name": {
  40. "key": [ "name", "name:*" ],
  41. "name": "{{ keyTrans('name') }}",
  42. "type": "text",
  43. "change_on": "keyup",
  44. "op": "strsearch"
  45. }
  46. }
  47. }