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.

36 lines
2.0 KiB

8 years ago
8 years ago
8 years ago
8 years ago
  1. {
  2. "type": "overpass",
  3. "name": {
  4. "ast": "Enerxía",
  5. "cs": "Elektřina",
  6. "de": "Elektrischer Strom",
  7. "en": "Electric Power",
  8. "et": "Elekter",
  9. "fr": "Production/transport électrique",
  10. "hu": "Áramellátás",
  11. "it": "Energia",
  12. "ja": "電力",
  13. "nl": "Stroomvoorziening",
  14. "pt": "Eletricidade",
  15. "pt-br": "Energia elétrica",
  16. "ro": "Energie",
  17. "ru": "Энергетика"
  18. },
  19. "query": {
  20. "11": "(node[power~'^(plant)$'];way[power~'^(plant|line)$'];relation[power~'^(plant)$'];)",
  21. "13": "(node[power~'^(plant|generator|substation)$'];way[power~'^(plant|line|generator|substation)$'];relation[power~'^(plant|generator|substation)$'];)",
  22. "15": "(node[power~'^(plant|generator|substation|transformer|tower)$'];way[power~'^(plant|line|generator|substation|transformer|minor_line)$'];relation[power~'^(plant|generator|substation|transformer)$'];)",
  23. "16": "(node[power];way[power];relation[power];)"
  24. },
  25. "feature": {
  26. "description": "{{ tagTrans('power', tags.power) }}{% set x='generator:source' %}{% if tags[x] %}, {{ tagTransList('generator:source', tags[x]) }}{% endif %}",
  27. "popupDescription": "{{ tagTrans('power', tags.power) }}",
  28. "body": [
  29. "{% set x='generator:source' %}{% if tags[x] %}<br/>{{ keyTrans('generator:source') }}: {{ tagTransList('generator:source', tags[x]) }}{% endif %}",
  30. "{% set x='generator:method' %}{% if tags[x] %}<br/>{{ keyTrans('generator:method') }}: {{ tagTransList('generator:method', tags[x]) }}{% endif %}",
  31. "{% set x='generator:type' %}{% if tags[x] %}<br/>{{ tagTransList('generator:type') }}: {{ tagTrans('generator:type', tags[x]) }}{% endif %}"
  32. ],
  33. "markerSymbol": null,
  34. "priority": "{% if tags.power == 'plant' %}0{% elseif tags.power == 'generator' or tags.power == 'line' %}1{% elseif tags.power == 'substation' %}2{% else %}3{% endif %}"
  35. }
  36. }