Browse Source

Split multiline strings into string arrays

master
parent
commit
6f2c1f601b
  1. 42
      administrative.json
  2. 8
      agriculture.json
  3. 21
      car_amenities.json
  4. 38
      car_maxspeed.json
  5. 21
      construction.json
  6. 32
      culture.json
  7. 73
      cycle_amenities.json
  8. 19
      emergency.json
  9. 16
      financial.json
  10. 10
      gastro.json
  11. 45
      health.json
  12. 7
      hiking_routes.json
  13. 16
      historic.json
  14. 15
      leisure.json
  15. 32
      military.json
  16. 27
      natural.json
  17. 5
      places.json
  18. 6
      power.json
  19. 21
      pt_amenities.json
  20. 6
      pt_routes.json
  21. 25
      pt_stops.json
  22. 89
      railway-electrification.json
  23. 92
      railway-infrastructure.json
  24. 40
      religion.json
  25. 16
      residential.json
  26. 21
      resources.json
  27. 5
      sport.json
  28. 8
      tourism_attractions.json
  29. 8
      tourism_services.json
  30. 45
      walk_amenities.json
  31. 47
      waste.json
  32. 49
      wikipedia.json

42
administrative.json

@ -15,12 +15,42 @@
"ru": "Административные границы" "ru": "Административные границы"
}, },
"query": { "query": {
"3": "(\nway[admin_level=2];\nrelation[admin_level=2];\n)",
"6": "(\nway[admin_level~\"^(2|3)$\"];\nrelation[admin_level~\"^(2|3)$\"];\n)",
"11": "(\nway[admin_level~\"^(2|3|4|5)$\"];\nrelation[admin_level~\"^(2|3|4|5)$\"];\n)",
"13": "(\nway[admin_level~\"^(2|3|4|5|6|7)$\"];\nrelation[admin_level~\"^(2|3|4|5|6|7)$\"];\n)",
"15": "(\nway[admin_level~\"^(2|3|4|5|6|7|8|9)$\"];\nrelation[admin_level~\"^(2|3|4|5|6|7|8|9)$\"];\n)",
"16": "(\nway[admin_level~\"^(2|3|4|5|6|7|8|9|10|11)$\"];\nrelation[admin_level~\"^(2|3|4|5|6|7|8|9|10|11)$\"];\n)"
"3": [
"(",
"way[admin_level=2];",
"relation[admin_level=2];",
")"
],
"6": [
"(",
"way[admin_level~\"^(2|3)$\"];",
"relation[admin_level~\"^(2|3)$\"];",
")"
],
"11": [
"(",
"way[admin_level~\"^(2|3|4|5)$\"];",
"relation[admin_level~\"^(2|3|4|5)$\"];",
")"
],
"13": [
"(",
"way[admin_level~\"^(2|3|4|5|6|7)$\"];",
"relation[admin_level~\"^(2|3|4|5|6|7)$\"];",
")"
],
"15": [
"(",
"way[admin_level~\"^(2|3|4|5|6|7|8|9)$\"];",
"relation[admin_level~\"^(2|3|4|5|6|7|8|9)$\"];",
")"
],
"16": [
"(",
"way[admin_level~\"^(2|3|4|5|6|7|8|9|10|11)$\"];",
"relation[admin_level~\"^(2|3|4|5|6|7|8|9|10|11)$\"];",
")"
]
}, },
"feature": { "feature": {
"description": "{{ tagTrans('admin_level', tags.admin_level) }}", "description": "{{ tagTrans('admin_level', tags.admin_level) }}",

8
agriculture.json

@ -16,7 +16,13 @@
"ru": "Сельское хозяйство" "ru": "Сельское хозяйство"
}, },
"query": { "query": {
"13": "(\nnode[landuse~\"^(allotments|farm|farmland|farmyard|greenhouse_horticulture|orchard|vineyard)$\"];\nway[landuse~\"^(allotments|farm|farmland|farmyard|greenhouse_horticulture|orchard|vineyard)$\"];\nrelation[landuse~\"^(allotments|farm|farmland|farmyard|greenhouse_horticulture|orchard|vineyard)$\"];\n)"
"13": [
"(",
"node[landuse~\"^(allotments|farm|farmland|farmyard|greenhouse_horticulture|orchard|vineyard)$\"];",
"way[landuse~\"^(allotments|farm|farmland|farmyard|greenhouse_horticulture|orchard|vineyard)$\"];",
"relation[landuse~\"^(allotments|farm|farmland|farmyard|greenhouse_horticulture|orchard|vineyard)$\"];",
")"
]
}, },
"feature": { "feature": {
"description": "{{ tagTrans('landuse', tags.landuse) }}" "description": "{{ tagTrans('landuse', tags.landuse) }}"

21
car_amenities.json

@ -13,11 +13,26 @@
"uk": "Amenities" "uk": "Amenities"
}, },
"query": { "query": {
"13": "(\nnode[amenity~\"^(car_rental|car_sharing|fuel)$\"];\nway[amenity~\"^(car_rental|car_sharing|fuel)$\"];\nrelation[amenity~\"^(car_rental|car_sharing|fuel)$\"];\n)",
"16": "(\nnode[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];\nway[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];\nrelation[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];\n)"
"13": [
"(",
"node[amenity~\"^(car_rental|car_sharing|fuel)$\"];",
"way[amenity~\"^(car_rental|car_sharing|fuel)$\"];",
"relation[amenity~\"^(car_rental|car_sharing|fuel)$\"];",
")"
],
"16": [
"(",
"node[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];",
"way[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];",
"relation[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% set key = 'amenity' %}\n{% set value = tags.amenity %}",
"pre": [
"{% set key = 'amenity' %}",
"{% set value = tags.amenity %}"
],
"description": "{{ tagTrans(key, value) }}", "description": "{{ tagTrans(key, value) }}",
"markerSign": "{{ const[value] }}" "markerSign": "{{ const[value] }}"
}, },

38
car_maxspeed.json

@ -10,8 +10,42 @@
"17": "way[highway~\"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified|service|living_street|pedestrian|track|road)$\"];" "17": "way[highway~\"^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|residential|unclassified|service|living_street|pedestrian|track|road)$\"];"
}, },
"feature": { "feature": {
"pre": "{% if tags.maxspeed is not defined %}\n{% set maxspeedKmh = null %}\n{% set maxspeed = null %}\n{% set unit = null %}\n{% else %}\n\n{% if tags.maxspeed|matches(\"^[0-9]+$\") %}\n{% set maxspeedKmh = tags.maxspeed %}\n{% set maxspeed = tags.maxspeed %}\n{% set unit = \"km/h\" %}\n{% endif %}\n\n\n{% set m = tags.maxspeed|matches(\"(^[0-9]+) mph$\") %}\n{% if m %}\n{% set maxspeedKmh = m[1] * 1.60934 %}\n{% set maxspeed = m[1] %}\n{% set unit = \"mph\" %}\n{% endif %}\n\n{% endif %}\n\n{% if not maxspeedKmh %}\n{% set color = \"#404040\" %}\n{% else %}\n{% set color = colorInterpolate([ 'green', 'orange', 'red' ], maxspeedKmh / 150) %}\n{% endif %}",
"description": "{% if maxspeed %}\n<span style='color: {{ color }}'>{{ maxspeed }} {{ unit }}</span>\n{% else %}\n{{ trans('unknown') }}\n{% endif %}",
"pre": [
"{% if tags.maxspeed is not defined %}",
"{% set maxspeedKmh = null %}",
"{% set maxspeed = null %}",
"{% set unit = null %}",
"{% else %}",
"",
"{% if tags.maxspeed|matches(\"^[0-9]+$\") %}",
"{% set maxspeedKmh = tags.maxspeed %}",
"{% set maxspeed = tags.maxspeed %}",
"{% set unit = \"km/h\" %}",
"{% endif %}",
"",
"",
"{% set m = tags.maxspeed|matches(\"(^[0-9]+) mph$\") %}",
"{% if m %}",
"{% set maxspeedKmh = m[1] * 1.60934 %}",
"{% set maxspeed = m[1] %}",
"{% set unit = \"mph\" %}",
"{% endif %}",
"",
"{% endif %}",
"",
"{% if not maxspeedKmh %}",
"{% set color = \"#404040\" %}",
"{% else %}",
"{% set color = colorInterpolate([ 'green', 'orange', 'red' ], maxspeedKmh / 150) %}",
"{% endif %}"
],
"description": [
"{% if maxspeed %}",
"<span style='color: {{ color }}'>{{ maxspeed }} {{ unit }}</span>",
"{% else %}",
"{{ trans('unknown') }}",
"{% endif %}"
],
"style": { "style": {
"color": "{{ color }}" "color": "{{ color }}"
}, },

21
construction.json

@ -12,10 +12,27 @@
"ru": "Места строительства" "ru": "Места строительства"
}, },
"query": { "query": {
"13": "(\nnode[landuse~\"^(brownfield|greenfield|construction|)$\"];\nway[landuse~\"^(brownfield|greenfield|construction|)$\"];\nrelation[landuse~\"^(brownfield|greenfield|construction|)$\"];\nnode[highway~\"^(construction)$\"];\nway[highway~\"^(construction)$\"];\nrelation[highway~\"^(construction)$\"];\n)"
"13": [
"(",
"node[landuse~\"^(brownfield|greenfield|construction|)$\"];",
"way[landuse~\"^(brownfield|greenfield|construction|)$\"];",
"relation[landuse~\"^(brownfield|greenfield|construction|)$\"];",
"node[highway~\"^(construction)$\"];",
"way[highway~\"^(construction)$\"];",
"relation[highway~\"^(construction)$\"];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.highway == 'construction' %}\n{% set key = 'highway' %}\n{% set value = tags.highway %}\n{% else %}\n{% set key = 'landuse' %}\n{% set value = tags.landuse %}\n{% endif %}",
"pre": [
"{% if tags.highway == 'construction' %}",
"{% set key = 'highway' %}",
"{% set value = tags.highway %}",
"{% else %}",
"{% set key = 'landuse' %}",
"{% set value = tags.landuse %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}" "description": "{{ tagTrans(key, value) }}"
} }
} }

32
culture.json

@ -20,10 +20,27 @@
"uk": "Культура " "uk": "Культура "
}, },
"query": { "query": {
"13": "(\nnode[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];\nway[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];\nrelation[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];\nnode[tourism~\"^(artwork|gallery|museum|theme_park)$\"];\nway[tourism~\"^(artwork|gallery|museum|theme_park)$\"];\nrelation[tourism~\"^(artwork|gallery|museum|theme_park)$\"];\n)"
"13": [
"(",
"node[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];",
"way[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];",
"relation[amenity~\"^(arts_centre|cinema|community_centre|fountain|studio|theatre)$\"];",
"node[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
"way[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
"relation[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre' ] %}\n{% set key = 'amenity' %}\n{% set value = tags.amenity %}\n{% elseif tags.tourism %}\n{% set key = 'tourism' %}\n{% set value = tags.tourism %}\n{% endif %}",
"pre": [
"{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre' ] %}",
"{% set key = 'amenity' %}",
"{% set value = tags.amenity %}",
"{% elseif tags.tourism %}",
"{% set key = 'tourism' %}",
"{% set value = tags.tourism %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}", "description": "{{ tagTrans(key, value) }}",
"markerSign": "{{ attribute(const, key ~ '=' ~ value) }}" "markerSign": "{{ attribute(const, key ~ '=' ~ value) }}"
}, },
@ -39,5 +56,14 @@
"tourism=museum": "🏛 ", "tourism=museum": "🏛 ",
"tourism=theme_park": "" "tourism=theme_park": ""
}, },
"info": "<table>\n{% for value, sign in const %}\n <tr>\n <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign }}</div></td>\n <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>\n </tr>\n{% endfor %}\n</table>"
"info": [
"<table>",
"{% for value, sign in const %}",
" <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ sign }}</div></td>",
" <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
" </tr>",
"{% endfor %}",
"</table>"
]
} }

73
cycle_amenities.json

@ -5,16 +5,77 @@
"de": "Einrichtungen" "de": "Einrichtungen"
}, },
"query": { "query": {
"13": "(\nnode[amenity~\"^(bicycle_rental)$\"];\nway[amenity~\"^(bicycle_rental)$\"];\nrelation[amenity~\"^(bicycle_rental)$\"];\nnode[shop~\"^(bicycle)$\"];\nway[shop~\"^(bicycle)$\"];\nrelation[shop~\"^(bicycle)$\"];\n)",
"16": "(\nnode[amenity~\"^(bicycle_.*|compressed_air)$\"];\nway[amenity~\"^(bicycle_.*|compressed_air)$\"];\nrelation[amenity~\"^(bicycle_.*|compressed_air)$\"];\nnode[shop~\"^(bicycle)$\"];\nway[shop~\"^(bicycle)$\"];\nrelation[shop~\"^(bicycle)$\"];\nnode[\"monitoring:bicycle\"];\nway[\"monitoring:bicycle\"];\nrelation[\"monitoring:bicycle\"];\nnode[vending~\"^(bicycle_tube)$\"];\nway[vending~\"^(bicycle_tube)$\"];\nrelation[vending~\"^(bicycle_tube)$\"];\n)\n"
"13": [
"(",
"node[amenity~\"^(bicycle_rental)$\"];",
"way[amenity~\"^(bicycle_rental)$\"];",
"relation[amenity~\"^(bicycle_rental)$\"];",
"node[shop~\"^(bicycle)$\"];",
"way[shop~\"^(bicycle)$\"];",
"relation[shop~\"^(bicycle)$\"];",
")"
],
"16": [
"(",
"node[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"way[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"relation[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"node[shop~\"^(bicycle)$\"];",
"way[shop~\"^(bicycle)$\"];",
"relation[shop~\"^(bicycle)$\"];",
"node[\"monitoring:bicycle\"];",
"way[\"monitoring:bicycle\"];",
"relation[\"monitoring:bicycle\"];",
"node[vending~\"^(bicycle_tube)$\"];",
"way[vending~\"^(bicycle_tube)$\"];",
"relation[vending~\"^(bicycle_tube)$\"];",
")",
""
]
}, },
"feature": { "feature": {
"pre": "{% if tags.shop in [ 'bicycle' ] %}\n {% set key = 'shop' %}\n {% set value = tags.shop %}\n{% elseif attribute(tags, \"monitoring:bicycle\") %}\n {% set key = 'man_made' %}\n {% set value = 'monitoring_station' %}\n{% elseif tags.vending in [ 'bicycle_tube' ] %}\n {% set key = 'vending' %}\n {% set value = tags.vending %}\n{% else %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% endif %}\n\n{% set constIndex = (key ~ \"=\" ~ value) %}",
"pre": [
"{% if tags.shop in [ 'bicycle' ] %}",
" {% set key = 'shop' %}",
" {% set value = tags.shop %}",
"{% elseif attribute(tags, \"monitoring:bicycle\") %}",
" {% set key = 'man_made' %}",
" {% set value = 'monitoring_station' %}",
"{% elseif tags.vending in [ 'bicycle_tube' ] %}",
" {% set key = 'vending' %}",
" {% set value = tags.vending %}",
"{% else %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}",
"",
"{% set constIndex = (key ~ \"=\" ~ value) %}"
],
"description": "{{ tagTrans(key, value) }}", "description": "{{ tagTrans(key, value) }}",
"body": "{% if tags.capacity %}\n {{ keyTrans('capacity') }}: {{ tags.capacity }}\n{% endif %}",
"body": [
"{% if tags.capacity %}",
" {{ keyTrans('capacity') }}: {{ tags.capacity }}",
"{% endif %}"
],
"markerSign": "{{ const[constIndex]['sign'] }}", "markerSign": "{{ const[constIndex]['sign'] }}",
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}\n\n{% if tags.capacity %}({{ tags.capacity }}){% endif %}",
"priority": "{% if const[constIndex] and const[constIndex]['priority']['capacity'] %}\n {% set max=const[constIndex]['priority']['default'] %}\n {% for v in const[constIndex]['priority']['capacity'] %}\n {% if tags.capacity >= v[0] %}{% set max=v[1] %}{% endif %}\n {% endfor %}\n {{ max }}\n{% elseif const[constIndex] is defined %}\n{{ const[constIndex]['priority'] }}\n{% else %}\n10\n{% endif %}"
"title": [
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}",
"",
"{% if tags.capacity %}({{ tags.capacity }}){% endif %}"
],
"priority": [
"{% if const[constIndex] and const[constIndex]['priority']['capacity'] %}",
" {% set max=const[constIndex]['priority']['default'] %}",
" {% for v in const[constIndex]['priority']['capacity'] %}",
" {% if tags.capacity >= v[0] %}{% set max=v[1] %}{% endif %}",
" {% endfor %}",
" {{ max }}",
"{% elseif const[constIndex] is defined %}",
"{{ const[constIndex]['priority'] }}",
"{% else %}",
"10",
"{% endif %}"
]
}, },
"const": { "const": {
"shop=bicycle": { "shop=bicycle": {

19
emergency.json

@ -18,12 +18,25 @@
"uk": "Швидка допомога" "uk": "Швидка допомога"
}, },
"query": { "query": {
"11": "(node[amenity~\"^(fire_station|hospital)$\"];\nway[amenity~\"^(fire_station|hospital)$\"];\nrelation[amenity~\"^(fire_station|hospital)$\"])",
"13": "(node[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];\nway[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];\nrelation[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"])"
"11": [
"(node[amenity~\"^(fire_station|hospital)$\"];",
"way[amenity~\"^(fire_station|hospital)$\"];",
"relation[amenity~\"^(fire_station|hospital)$\"])"
],
"13": [
"(node[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];",
"way[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"];",
"relation[amenity~\"^(fire_station|hospital|police|emergency_phone)$\"])"
]
}, },
"feature": { "feature": {
"description": "{{ tagTrans('amenity', tags.amenity) }}", "description": "{{ tagTrans('amenity', tags.amenity) }}",
"markerSign": "{% set data = const[tags.amenity] %}\n{% if data %}\n{{ data.sign }}\n{% endif %}"
"markerSign": [
"{% set data = const[tags.amenity] %}",
"{% if data %}",
"{{ data.sign }}",
"{% endif %}"
]
}, },
"const": { "const": {
"fire_station": { "fire_station": {

16
financial.json

@ -16,8 +16,20 @@
"uk": "Фінанси" "uk": "Фінанси"
}, },
"query": { "query": {
"14": "(\nnode[amenity~\"^(bank)$\"];\nway[amenity~\"^(bank)$\"];\nrelation[amenity~\"^(bank)$\"]\n)",
"15": "(\nnode[amenity~\"^(bank|bureau_de_change|atm)$\"];\nway[amenity~\"^(bank|bureau_de_change|atm)$\"];\nrelation[amenity~\"^(bank|bureau_de_change|atm)$\"]\n)"
"14": [
"(",
"node[amenity~\"^(bank)$\"];",
"way[amenity~\"^(bank)$\"];",
"relation[amenity~\"^(bank)$\"]",
")"
],
"15": [
"(",
"node[amenity~\"^(bank|bureau_de_change|atm)$\"];",
"way[amenity~\"^(bank|bureau_de_change|atm)$\"];",
"relation[amenity~\"^(bank|bureau_de_change|atm)$\"]",
")"
]
}, },
"feature": { "feature": {
"description": "{{ tagTrans('amenity', tags.amenity) }}", "description": "{{ tagTrans('amenity', tags.amenity) }}",

10
gastro.json

@ -21,7 +21,15 @@
}, },
"feature": { "feature": {
"markerSign": "{% if tags.amenity=='bar' %}&#127864;{% elseif tags.amenity=='biergarten'%}&#127867;{% elseif tags.amenity=='cafe' %}&#9749;{% elseif tags.amenity=='fast_food' %}&#127828;{% elseif tags.amenity=='ice_cream' %}&#127848;{% elseif tags.amenity=='pub' %}&#127866;{% else %}&#127860;{% endif %}", "markerSign": "{% if tags.amenity=='bar' %}&#127864;{% elseif tags.amenity=='biergarten'%}&#127867;{% elseif tags.amenity=='cafe' %}&#9749;{% elseif tags.amenity=='fast_food' %}&#127828;{% elseif tags.amenity=='ice_cream' %}&#127848;{% elseif tags.amenity=='pub' %}&#127866;{% else %}&#127860;{% endif %}",
"body": "<ul>\n <li class='hasSymbol'>\n <i class=\"fa fa-cutlery\" aria-hidden=\"true\"></i>\n <span class='key'>{{ keyTrans('cuisine') }}:</span>\n <span class='value'>{{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}</span>\n </li>\n</ul>",
"body": [
"<ul>",
" <li class='hasSymbol'>",
" <i class=\"fa fa-cutlery\" aria-hidden=\"true\"></i>",
" <span class='key'>{{ keyTrans('cuisine') }}:</span>",
" <span class='value'>{{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}</span>",
" </li>",
"</ul>"
],
"description": "{{ tagTrans('amenity', tags.amenity) }}" "description": "{{ tagTrans('amenity', tags.amenity) }}"
} }
} }

45
health.json

@ -16,12 +16,49 @@
"uk": "Здоров'я" "uk": "Здоров'я"
}, },
"query": { "query": {
"11": "(\nnode[amenity~\"^(hospital)$\"];\nway[amenity~\"^(hospital)$\"];\nrelation[amenity~\"^(hospital)$\"];\nnode[healthcare~\"^(hospital|clinic)$\"];\nway[healthcare~\"^(hospital|clinic)$\"];\nrelation[healthcare~\"^(hospital|clinic)$\"];\n)",
"14": "(\nnode[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];\nnode[emergency=defibrillator];\nway[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];\nrelation[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];\nnode[healthcare];\nway[healthcare];\nrelation[healthcare];\n)"
"11": [
"(",
"node[amenity~\"^(hospital)$\"];",
"way[amenity~\"^(hospital)$\"];",
"relation[amenity~\"^(hospital)$\"];",
"node[healthcare~\"^(hospital|clinic)$\"];",
"way[healthcare~\"^(hospital|clinic)$\"];",
"relation[healthcare~\"^(hospital|clinic)$\"];",
")"
],
"14": [
"(",
"node[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"node[emergency=defibrillator];",
"way[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"relation[amenity~\"^(baby_hatch|clinic|dentist|doctors|hospital|nursing_home|pharmacy|social_facility|veterinary)$\"];",
"node[healthcare];",
"way[healthcare];",
"relation[healthcare];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.emergency in [ 'defibrillator' ] %}\n {% set key = 'emergency' %}\n {% set value = tags.emergency %}\n{% elseif tags.healthcare %}\n {% set key = 'healthcare' %}\n {% set value = tags.healthcare %}\n{% else %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% endif %}\n",
"description": "{{ tagTrans(key, value) }}\n{% if attribute(tags, 'healthcare:speciality') %}\n-\n{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}\n{% endif %}",
"pre": [
"{% if tags.emergency in [ 'defibrillator' ] %}",
" {% set key = 'emergency' %}",
" {% set value = tags.emergency %}",
"{% elseif tags.healthcare %}",
" {% set key = 'healthcare' %}",
" {% set value = tags.healthcare %}",
"{% else %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}",
""
],
"description": [
"{{ tagTrans(key, value) }}",
"{% if attribute(tags, 'healthcare:speciality') %}",
"-",
"{{ tagTransList('healthcare:speciality', attribute(tags, 'healthcare:speciality')) }}",
"{% endif %}"
],
"markerSign": "{{ const[value] }}" "markerSign": "{{ const[value] }}"
}, },
"const": { "const": {

7
hiking_routes.json

@ -12,7 +12,12 @@
}, },
"feature": { "feature": {
"description": "{{ tagTrans('network', tags.network) }}", "description": "{{ tagTrans('network', tags.network) }}",
"priority": "{% set network_data = const[tags.network] %}\n{% if network_data %}\n{{ network_data.priority }}\n{% endif %}"
"priority": [
"{% set network_data = const[tags.network] %}",
"{% if network_data %}",
"{{ network_data.priority }}",
"{% endif %}"
]
}, },
"const": { "const": {
"iwn": { "iwn": {

16
historic.json

@ -18,8 +18,20 @@
"uk": "Історія" "uk": "Історія"
}, },
"query": { "query": {
"11": "(\nnode[historic~\"^(castle|archaeological_site|battlefield|monument)$\"];\nway[historic~\"^(castle|archaeological_site|battlefield|monument)$\"];\nrelation[historic~\"^(castle|archaeological_site|battlefield|monument)$\"];\n)",
"14": "(\nnode[historic];\nway[historic];\nrelation[historic];\n)"
"11": [
"(",
"node[historic~\"^(castle|archaeological_site|battlefield|monument)$\"];",
"way[historic~\"^(castle|archaeological_site|battlefield|monument)$\"];",
"relation[historic~\"^(castle|archaeological_site|battlefield|monument)$\"];",
")"
],
"14": [
"(",
"node[historic];",
"way[historic];",
"relation[historic];",
")"
]
}, },
"feature": { "feature": {
"description": "{{ tagTransList('historic', tags.historic) }}", "description": "{{ tagTransList('historic', tags.historic) }}",

15
leisure.json

@ -15,9 +15,20 @@
"uk": "Дозвілля" "uk": "Дозвілля"
}, },
"query": { "query": {
"15": "(\nnode[leisure];\nway[leisure];\nrelation[leisure];\n)"
"15": [
"(",
"node[leisure];",
"way[leisure];",
"relation[leisure];",
")"
]
}, },
"feature": { "feature": {
"description": "{{ tagTrans('leisure', tags.leisure) }}\n{% if tags.leisure == 'pitch' and tags.sport %}\n- {{ tagTransList('sport', tags.sport) }}\n{% endif %}"
"description": [
"{{ tagTrans('leisure', tags.leisure) }}",
"{% if tags.leisure == 'pitch' and tags.sport %}",
"- {{ tagTransList('sport', tags.sport) }}",
"{% endif %}"
]
} }
} }

32
military.json

@ -15,11 +15,37 @@
"ru": "Вооружённые силы" "ru": "Вооружённые силы"
}, },
"query": { "query": {
"11": "(\nnode[military~\"^(airfield|danger_area)$\"];\nnode[landuse=military];\nway[military~\"^(airfield|danger_area)$\"];\nway[landuse=military];\nrelation[military~\"^(airfield|danger_area)$\"];\nrelation[landuse=military];\n)",
"14": "(\nnode[military];\nnode[landuse=military];\nway[military];\nway[landuse=military];\nrelation[military];\nrelation[landuse=military];\n)"
"11": [
"(",
"node[military~\"^(airfield|danger_area)$\"];",
"node[landuse=military];",
"way[military~\"^(airfield|danger_area)$\"];",
"way[landuse=military];",
"relation[military~\"^(airfield|danger_area)$\"];",
"relation[landuse=military];",
")"
],
"14": [
"(",
"node[military];",
"node[landuse=military];",
"way[military];",
"way[landuse=military];",
"relation[military];",
"relation[landuse=military];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.military %}\n {% set key = 'military' %}\n {% set value = tags.military %}\n{% else %}\n {% set key = 'landuse' %}\n {% set value = tags.landuse %}\n{% endif %}",
"pre": [
"{% if tags.military %}",
" {% set key = 'military' %}",
" {% set value = tags.military %}",
"{% else %}",
" {% set key = 'landuse' %}",
" {% set value = tags.landuse %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}" "description": "{{ tagTrans(key, value) }}"
} }
} }

27
natural.json

@ -15,12 +15,31 @@
"uk": "Природне середовище" "uk": "Природне середовище"
}, },
"query": { "query": {
"9": "(\nnode[natural~\"^(peak|volcano)$\"];\n)",
"16": "(\nnode[natural];\nway[natural];\nrelation[natural];\n)",
"13": "(\nnode[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];\nway[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];\nrelation[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];\n)"
"9": [
"(",
"node[natural~\"^(peak|volcano)$\"];",
")"
],
"16": [
"(",
"node[natural];",
"way[natural];",
"relation[natural];",
")"
],
"13": [
"(",
"node[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];",
"way[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];",
"relation[natural~\"^(peak|volcano|wood|scrub|heath|grassland|fell|bare_rock|scree|shingle|sand|mud|water|wetland|glacier|bay|cape|beach|coastline|spring|hot_spring|geyser|valley|ridge|arete|cliff|saddle|rock|stone|sinkhole|cave_entrance)$\"];",
")"
]
}, },
"feature": { "feature": {
"title": "{{ localizedTag(tags, 'name') | default(trans('unnamed')) }}\n{% if tags.natural == 'peak' and tags.ele %}({{ tags.ele }}m){% endif %}",
"title": [
"{{ localizedTag(tags, 'name') | default(trans('unnamed')) }}",
"{% if tags.natural == 'peak' and tags.ele %}({{ tags.ele }}m){% endif %}"
],
"description": "{{ tagTrans('natural', tags.natural) }}" "description": "{{ tagTrans('natural', tags.natural) }}"
} }
} }

5
places.json

@ -29,7 +29,10 @@
}, },
"feature": { "feature": {
"title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}", "title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}",
"body": "{% if tags.population %}{{ keyTrans('population') }}: {{ tags.population }}{% endif %} \n",
"body": [
"{% if tags.population %}{{ keyTrans('population') }}: {{ tags.population }}{% endif %} ",
""
],
"description": "{{ tagTrans('place', tags.place) }}", "description": "{{ tagTrans('place', tags.place) }}",
"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] }}" "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] }}"
} }

6
power.json

@ -22,7 +22,11 @@
}, },
"feature": { "feature": {
"markerSign": null, "markerSign": null,
"body": "{% set x='generator:source' %}{% if tags[x] %}<br/>{{ keyTrans('generator:source') }}: {{ tagTransList('generator:source', tags[x]) }}{% endif %}\n{% set x='generator:method' %}{% if tags[x] %}<br/>{{ keyTrans('generator:method') }}: {{ tagTransList('generator:method', tags[x]) }}{% endif %}\n{% set x='generator:type' %}{% if tags[x] %}<br/>{{ tagTransList('generator:type') }}: {{ tagTrans('generator:type', tags[x]) }}{% endif %}",
"body": [
"{% set x='generator:source' %}{% if tags[x] %}<br/>{{ keyTrans('generator:source') }}: {{ tagTransList('generator:source', tags[x]) }}{% endif %}",
"{% set x='generator:method' %}{% if tags[x] %}<br/>{{ keyTrans('generator:method') }}: {{ tagTransList('generator:method', tags[x]) }}{% endif %}",
"{% set x='generator:type' %}{% if tags[x] %}<br/>{{ tagTransList('generator:type') }}: {{ tagTrans('generator:type', tags[x]) }}{% endif %}"
],
"description": "{{ tagTrans('power', tags.power) }}{% set x='generator:source' %}{% if tags[x] %}, {{ tagTransList('generator:source', tags[x]) }}{% endif %}", "description": "{{ tagTrans('power', tags.power) }}{% set x='generator:source' %}{% if tags[x] %}, {{ tagTransList('generator:source', tags[x]) }}{% endif %}",
"priority": "{% if tags.power == 'plant' %}0{% elseif tags.power == 'generator' or tags.power == 'line' %}1{% elseif tags.power == 'substation' %}2{% else %}3{% endif %}", "priority": "{% if tags.power == 'plant' %}0{% elseif tags.power == 'generator' or tags.power == 'line' %}1{% elseif tags.power == 'substation' %}2{% else %}3{% endif %}",
"popupDescription": "{{ tagTrans('power', tags.power) }}" "popupDescription": "{{ tagTrans('power', tags.power) }}"

21
pt_amenities.json

@ -13,10 +13,27 @@
"uk": "Amenities" "uk": "Amenities"
}, },
"query": { "query": {
"14": "(\nnode[amenity~\"^(taxi|ticket_counter)$\"];\nway[amenity~\"^(taxi|ticket_counter)$\"];\nrelation[amenity~\"^(taxi|ticket_counter)$\"];\nnode[railway~\"^(subway_entrance)$\"];\nway[railway~\"^(subway_entrance)$\"];\nrelation[railway~\"^(subway_entrance)$\"];\n)"
"14": [
"(",
"node[amenity~\"^(taxi|ticket_counter)$\"];",
"way[amenity~\"^(taxi|ticket_counter)$\"];",
"relation[amenity~\"^(taxi|ticket_counter)$\"];",
"node[railway~\"^(subway_entrance)$\"];",
"way[railway~\"^(subway_entrance)$\"];",
"relation[railway~\"^(subway_entrance)$\"];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.railway == 'subway_entrance' %}\n {% set key = 'railway' %}\n {% set value = tags.railway %}\n{% else %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% endif %}",
"pre": [
"{% if tags.railway == 'subway_entrance' %}",
" {% set key = 'railway' %}",
" {% set value = tags.railway %}",
"{% else %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}", "description": "{{ tagTrans(key, value) }}",
"markerSign": "{{ const[value] }}" "markerSign": "{{ const[value] }}"
}, },

6
pt_routes.json

@ -9,6 +9,10 @@
}, },
"feature": { "feature": {
"description": "{{ tagTrans('route', tags.route) }}", "description": "{{ tagTrans('route', tags.route) }}",
"title": "{% if tags.ref %}{{ tags.ref }} - {% endif %}\n\n{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
"title": [
"{% if tags.ref %}{{ tags.ref }} - {% endif %}",
"",
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
]
} }
} }

25
pt_stops.json

@ -17,10 +17,31 @@
"uk": "Зупинки та станції" "uk": "Зупинки та станції"
}, },
"query": { "query": {
"14": "(\nnode[railway~\"^(station|halt|tram_stop|platform)$\"];\nway[railway~\"^(station|platform)$\"];\nnode[highway~\"^(bus_stop|platform)$\"];\nway[highway~\"^(platform)$\"];\nnode[public_transport~\"^(stop_position|platform)$\"];\nway[public_transport~\"^(platform)$\"];\nnode[amenity~\"^(ferry_terminal|bus_station)$\"];\n)"
"14": [
"(",
"node[railway~\"^(station|halt|tram_stop|platform)$\"];",
"way[railway~\"^(station|platform)$\"];",
"node[highway~\"^(bus_stop|platform)$\"];",
"way[highway~\"^(platform)$\"];",
"node[public_transport~\"^(stop_position|platform)$\"];",
"way[public_transport~\"^(platform)$\"];",
"node[amenity~\"^(ferry_terminal|bus_station)$\"];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.amenity in [ 'ferry_terminal', 'bus_station' ] %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% elseif tags.railway == 'platform' or tags.highway == 'platform' or tags.public_transport == 'platform' %}\n {% set key = 'public_transport' %}\n {% set value = 'platform' %}\n{% else %}\n {% set key = 'public_transport' %}\n {% set value = 'stop_position' %}\n{% endif %}",
"pre": [
"{% if tags.amenity in [ 'ferry_terminal', 'bus_station' ] %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% elseif tags.railway == 'platform' or tags.highway == 'platform' or tags.public_transport == 'platform' %}",
" {% set key = 'public_transport' %}",
" {% set value = 'platform' %}",
"{% else %}",
" {% set key = 'public_transport' %}",
" {% set value = 'stop_position' %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}" "description": "{{ tagTrans(key, value) }}"
} }
} }

89
railway-electrification.json

@ -9,7 +9,31 @@
"14": "way[railway][railway!~'^(platform|abandoned|disused|station|proposed|subway_entrance)$'];" "14": "way[railway][railway!~'^(platform|abandoned|disused|station|proposed|subway_entrance)$'];"
}, },
"feature": { "feature": {
"pre": "{% if tags.electrified and tags.electrified != 'no' %}\n {% if tags.voltage < 1000 %}\n {% set color = colorInterpolate([ '#00ff00', 'blue' ], tags.voltage / 1000) %}\n {% else %}\n {% set color = colorInterpolate([ 'blue', 'red' ], (tags.voltage - 1000) / 24000) %}\n {% endif %}\n{% else %}\n {% set color='black' %}\n{%endif %}\n\n{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}\n {% set weight=2 %}\n {% else %}\n {% if tags.railway == 'rail' %}\n {% if tags.usage == 'main' or tags.usage == 'branch' %}\n {% set weight=3 %}\n {% else %}\n {% set weight=2.5 %}\n {% endif %}\n {% else %}\n {% set weight=2 %}\n {% endif %}\n{% endif %}",
"pre": [
"{% if tags.electrified and tags.electrified != 'no' %}",
" {% if tags.voltage < 1000 %}",
" {% set color = colorInterpolate([ '#00ff00', 'blue' ], tags.voltage / 1000) %}",
" {% else %}",
" {% set color = colorInterpolate([ 'blue', 'red' ], (tags.voltage - 1000) / 24000) %}",
" {% endif %}",
"{% else %}",
" {% set color='black' %}",
"{%endif %}",
"",
"{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}",
" {% set weight=2 %}",
" {% else %}",
" {% if tags.railway == 'rail' %}",
" {% if tags.usage == 'main' or tags.usage == 'branch' %}",
" {% set weight=3 %}",
" {% else %}",
" {% set weight=2.5 %}",
" {% endif %}",
" {% else %}",
" {% set weight=2 %}",
" {% endif %}",
"{% endif %}"
],
"style:casing": { "style:casing": {
"color": "white", "color": "white",
"weight": "{{ weight }}", "weight": "{{ weight }}",
@ -19,17 +43,72 @@
"style": { "style": {
"color": "{{ color }}", "color": "{{ color }}",
"weight": "{{ weight }}", "weight": "{{ weight }}",
"dashArray": "{% if not tags.electrified or tags.electrified == 'no' %}\n{% elseif tags.frequency == 0 %}\n{% else %}\n5,2\n{% endif %}",
"dashArray": [
"{% if not tags.electrified or tags.electrified == 'no' %}",
"{% elseif tags.frequency == 0 %}",
"{% else %}",
"5,2",
"{% endif %}"
],
"opacity": "1", "opacity": "1",
"lineCap": "butt" "lineCap": "butt"
}, },
"styles": "casing,default", "styles": "casing,default",
"markerSign": null, "markerSign": null,
"body": "{{ tagTrans('railway', tags.railway) }}<br/>\n{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}\n{% if tags.usage %}{{ keyTrans('usage') }}: {{ tagTrans('usage', tags.usage)|default(trans('unknown')) }}<br/>{% endif %}\n{% if tags.service %}{{ keyTrans('service') }}: {{ tagTrans('service', tags.service ) }}<br/>{% endif %}\n{{ keyTrans('gauge') }}: {{ tags.gauge|default(trans('unknown')) }}<br/>\n{% if tags.electrified == 'no' %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', 'no') }}{% elseif tags.electrified %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', tags.electrified) }}, {{ keyTrans('voltage') }}: {{ tags.voltage|default(trans('unknown')) }}, {{ keyTrans('frequency') }}: {{ tags.frequency|default(trans('unknown')) }}<br/>{% endif %}\n",
"description": "{{ tagTrans('railway', tags.railway) }} -\n\n{% if tags.electrified == 'no' %}\n {{ trans('not electrified') }}\n{% elseif tags.electrified %}\n {{ tags.voltage|default(trans('unknown')) }}V, {{ tags.frequency|default(trans('unknown')) }}Hz\n{% endif %}",
"body": [
"{{ tagTrans('railway', tags.railway) }}<br/>",
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}",
"{% if tags.usage %}{{ keyTrans('usage') }}: {{ tagTrans('usage', tags.usage)|default(trans('unknown')) }}<br/>{% endif %}",
"{% if tags.service %}{{ keyTrans('service') }}: {{ tagTrans('service', tags.service ) }}<br/>{% endif %}",
"{{ keyTrans('gauge') }}: {{ tags.gauge|default(trans('unknown')) }}<br/>",
"{% if tags.electrified == 'no' %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', 'no') }}{% elseif tags.electrified %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', tags.electrified) }}, {{ keyTrans('voltage') }}: {{ tags.voltage|default(trans('unknown')) }}, {{ keyTrans('frequency') }}: {{ tags.frequency|default(trans('unknown')) }}<br/>{% endif %}",
""
],
"description": [
"{{ tagTrans('railway', tags.railway) }} -",
"",
"{% if tags.electrified == 'no' %}",
" {{ trans('not electrified') }}",
"{% elseif tags.electrified %}",
" {{ tags.voltage|default(trans('unknown')) }}V, {{ tags.frequency|default(trans('unknown')) }}Hz",
"{% endif %}"
],
"priority": "{% if tags.railway == 'station' %}0{% elseif tags.railway in [ 'halt', 'tram_stop' ] %}1{% else %}5{% endif %}", "priority": "{% if tags.railway == 'station' %}0{% elseif tags.railway in [ 'halt', 'tram_stop' ] %}1{% else %}5{% endif %}",
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}", "title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"listMarkerSymbol": "line" "listMarkerSymbol": "line"
}, },
"info": "<table>\n {% set color = '#000000' %}\n <tr>\n <td>{{ markerLine({ 'weight': 3, 'color': color })|raw }}</td>\n <td>{{ trans('not electrified') }}</td>\n </tr>\n{% for i in range(0, 1000, 200) %}\n {% set color = colorInterpolate([ '#00ff00', 'blue' ], i / 1000) %}\n <tr>\n <td>{{ markerLine({ 'weight': 3, 'color': color })|raw }}</td>\n <td>{{ i }}V</td>\n </tr>\n{% endfor %}\n\n{% for i in range(3000, 25000, 2000) %}\n {% set color = colorInterpolate([ 'blue', 'red' ], (i - 1000) / 24000) %}\n <tr>\n <td>{{ markerLine({ 'weight': 3, 'color': color })|raw }}</td>\n <td>{{ i }}V</td>\n </tr>\n{% endfor %}\n\n <tr>\n <td>{{ markerLine({ 'weight': 3, 'color': color })|raw }}</td>\n <td>{{ trans('direct current') }}</td>\n </tr>\n\n <tr>\n <td>{{ markerLine({ 'styles': [ 'casing', 'default' ], 'style:casing': { 'weight': 3, 'color': 'white' }, 'style': { 'weight': '3', 'dashArray': '5,2', 'lineCap': 'butt', 'color': color } })|raw }}</td>\n <td>{{ trans('alternating current') }}</td>\n </tr>\n</table>"
"info": [
"<table>",
" {% set color = '#000000' %}",
" <tr>",
" <td>{{ markerLine({ 'weight': 3, 'color': color })|raw }}</td>",
" <td>{{ trans('not electrified') }}</td>",
" </tr>",
"{% for i in range(0, 1000, 200) %}",
" {% set color = colorInterpolate([ '#00ff00', 'blue' ], i / 1000) %}",
" <tr>",
" <td>{{ markerLine({ 'weight': 3, 'color': color })|raw }}</td>",
" <td>{{ i }}V</td>",
" </tr>",
"{% endfor %}",
"",
"{% for i in range(3000, 25000, 2000) %}",
" {% set color = colorInterpolate([ 'blue', 'red' ], (i - 1000) / 24000) %}",
" <tr>",
" <td>{{ markerLine({ 'weight': 3, 'color': color })|raw }}</td>",
" <td>{{ i }}V</td>",
" </tr>",
"{% endfor %}",
"",
" <tr>",
" <td>{{ markerLine({ 'weight': 3, 'color': color })|raw }}</td>",
" <td>{{ trans('direct current') }}</td>",
" </tr>",
"",
" <tr>",
" <td>{{ markerLine({ 'styles': [ 'casing', 'default' ], 'style:casing': { 'weight': 3, 'color': 'white' }, 'style': { 'weight': '3', 'dashArray': '5,2', 'lineCap': 'butt', 'color': color } })|raw }}</td>",
" <td>{{ trans('alternating current') }}</td>",
" </tr>",
"</table>"
]
} }

92
railway-infrastructure.json

@ -20,19 +20,95 @@
"color": "{% if tags.railway == 'rail' or tags.railway == 'narrow_gauge' or tags.railway == 'disused' %}{% if tags.usage == 'main' %}#ff8100{% elseif tags.usage == 'branch' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == 'subway' %}#0000ff{% elseif tags.railway == 'tram' %}#ff00ff{% elseif tags.railway == 'light_rail' %}#00BD14{% elseif tags.railway == 'platform' %}#3f3f3f{% else %}#000000{% endif %}", "color": "{% if tags.railway == 'rail' or tags.railway == 'narrow_gauge' or tags.railway == 'disused' %}{% if tags.usage == 'main' %}#ff8100{% elseif tags.usage == 'branch' %}#daca00{% else %}#000000{% endif %}{% elseif tags.railway == 'subway' %}#0000ff{% elseif tags.railway == 'tram' %}#ff00ff{% elseif tags.railway == 'light_rail' %}#00BD14{% elseif tags.railway == 'platform' %}#3f3f3f{% else %}#000000{% endif %}",
"weight": "{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}1{% else %}{% if tags.railway == 'rail' %}{% if tags.usage == 'main' or tags.usage == 'branch' %}3{% else %}2{% endif %}{% elseif tags.railway == 'platform' %}1{% else %}2{% endif %}{% endif %}", "weight": "{% if tags.service == 'yard' or tags.service == 'siding' or tags.service == 'spur' or tags.service == 'crossover' %}1{% else %}{% if tags.railway == 'rail' %}{% if tags.usage == 'main' or tags.usage == 'branch' %}3{% else %}2{% endif %}{% elseif tags.railway == 'platform' %}1{% else %}2{% endif %}{% endif %}",
"dashArray": "{% if tags.railway == 'rail' %}{% elseif tags.railway == 'disused' %}1,5{% elseif tags.railway == 'abandoned' %}1,7{% endif %}", "dashArray": "{% if tags.railway == 'rail' %}{% elseif tags.railway == 'disused' %}1,5{% elseif tags.railway == 'abandoned' %}1,7{% endif %}",
"fillColor": "{% if tags.railway == 'platform' %}\n#3f3f3f\n{% elseif type == 'node' %}\n#ffffff\n{% endif %}",
"fill": "{% if tags.railway == 'platform' %}\n1\n{% elseif type == 'node' %}\n1\n{% else %}\n{% endif %}",
"fillColor": [
"{% if tags.railway == 'platform' %}",
"#3f3f3f",
"{% elseif type == 'node' %}",
"#ffffff",
"{% endif %}"
],
"fill": [
"{% if tags.railway == 'platform' %}",
"1",
"{% elseif type == 'node' %}",
"1",
"{% else %}",
"{% endif %}"
],
"opacity": "1", "opacity": "1",
"fillOpacity": "{% if tags.railway == 'platform' %}\n0.2\n{% elseif type == 'node' %}\n0\n{% endif %}"
"fillOpacity": [
"{% if tags.railway == 'platform' %}",
"0.2",
"{% elseif type == 'node' %}",
"0",
"{% endif %}"
]
}, },
"styles": "{% if tags.railway == 'narrow_gauge' %}default,casing{% else %}default{% endif %}", "styles": "{% if tags.railway == 'narrow_gauge' %}default,casing{% else %}default{% endif %}",
"markerSign": "{% if tags.railway in [ 'halt', 'tram_stop', 'station', 'stop', 'subway_entrance' ] %}X{% endif %}", "markerSign": "{% if tags.railway in [ 'halt', 'tram_stop', 'station', 'stop', 'subway_entrance' ] %}X{% endif %}",
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}\n{% if tags.usage %}{{ keyTrans('usage') }}: {{ tagTrans('usage', tags.usage)|default(trans('unknown')) }}<br/>{% endif %}\n{% if tags.service %}{{ keyTrans('service') }}: {{ tagTrans('service', tags.service ) }}<br/>{% endif %}\n{{ keyTrans('gauge') }}: {{ tags.gauge|default(trans('unknown')) }}<br/>\n{% if tags.electrified == 'no' %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', 'no') }}{% elseif tags.electrified %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', tags.electrified) }}, {{ keyTrans('voltage') }}: {{ tags.voltage|default(trans('unknown')) }}, {{ keyTrans('frequency') }}: {{ tags.frequency|default(trans('unknown')) }}<br/>{% endif %}\n",
"body": [
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}",
"{% if tags.usage %}{{ keyTrans('usage') }}: {{ tagTrans('usage', tags.usage)|default(trans('unknown')) }}<br/>{% endif %}",
"{% if tags.service %}{{ keyTrans('service') }}: {{ tagTrans('service', tags.service ) }}<br/>{% endif %}",
"{{ keyTrans('gauge') }}: {{ tags.gauge|default(trans('unknown')) }}<br/>",
"{% if tags.electrified == 'no' %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', 'no') }}{% elseif tags.electrified %}{{ keyTrans('electrified') }}: {{ tagTrans('electrified', tags.electrified) }}, {{ keyTrans('voltage') }}: {{ tags.voltage|default(trans('unknown')) }}, {{ keyTrans('frequency') }}: {{ tags.frequency|default(trans('unknown')) }}<br/>{% endif %}",
""
],
"description": "{{ tagTrans('railway', tags.railway) }}", "description": "{{ tagTrans('railway', tags.railway) }}",
"priority": "{% if tags.railway == 'station' %}0\n{% elseif tags.railway in [ 'halt' ] %}1\n{% elseif tags.railway in [ 'tram_stop', 'stop' ] %}2\n{% elseif tags.railway in [ 'subway_entrance' ] %}3\n{% else %}5\n{% endif %}",
"priority": [
"{% if tags.railway == 'station' %}0",
"{% elseif tags.railway in [ 'halt' ] %}1",
"{% elseif tags.railway in [ 'tram_stop', 'stop' ] %}2",
"{% elseif tags.railway in [ 'subway_entrance' ] %}3",
"{% else %}5",
"{% endif %}"
],
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}", "title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"listMarkerSymbol": "{% if tags.railway in [ 'station', 'halt', 'tram_stop', 'stop', 'subway_entrance', 'signal' ] %}\n{% else %}\nline\n{% endif %}",
"markerSymbol": "{% if tags.railway == 'signal' %}\n<svg width='10' height='10'>\n <circle cx='4.5' cy='4.5' r='3' style='stroke-width: 3; stroke: #000000; fill: #ffffff'>\n</svg>\n{% else %}\n{{ markerPointer({})|raw }}\n{% endif %}"
"listMarkerSymbol": [
"{% if tags.railway in [ 'station', 'halt', 'tram_stop', 'stop', 'subway_entrance', 'signal' ] %}",
"{% else %}",
"line",
"{% endif %}"
],
"markerSymbol": [
"{% if tags.railway == 'signal' %}",
"<svg width='10' height='10'>",
" <circle cx='4.5' cy='4.5' r='3' style='stroke-width: 3; stroke: #000000; fill: #ffffff'>",
"</svg>",
"{% else %}",
"{{ markerPointer({})|raw }}",
"{% endif %}"
]
}, },
"info": "<table>\n <tr>\n <td>{{ markerLine(evaluate({ \"railway\": \"rail\", \"usage\": \"main\" }))|raw }}</td>\n <td>{{ tagTrans('railway', 'rail') }}, {{ keyTrans('usage') }}: {{ tagTrans('usage', 'main') }}</td>\n </tr>\n <tr>\n <td>{{ markerLine(evaluate({ \"railway\": \"rail\" }))|raw }}</td>\n <td>{{ tagTrans('railway', 'rail') }}</td>\n </tr>\n <tr>\n <td>{{ markerLine(evaluate({ \"railway\": \"narrow_gauge\" }))|raw }}</td>\n <td>{{ tagTrans('railway', 'narrow_gauge') }}</td>\n </tr>\n <tr>\n <td>{{ markerLine(evaluate({ \"railway\": \"light_rail\" }))|raw }}</td>\n <td>{{ tagTrans('railway', 'light_rail') }}</td>\n </tr>\n <tr>\n <td>{{ markerLine(evaluate({ \"railway\": \"subway\" }))|raw }}</td>\n <td>{{ tagTrans('railway', 'subway') }}</td>\n </tr>\n{{ console_log(map) }}\n{% if map.zoom >= 14 %}\n <tr>\n <td>{{ markerLine(evaluate({ \"railway\": \"tram\" }))|raw }}</td>\n <td>{{ tagTrans('railway', 'tram') }}</td>\n </tr>\n{% endif %}\n</table>"
"info": [
"<table>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"railway\": \"rail\", \"usage\": \"main\" }))|raw }}</td>",
" <td>{{ tagTrans('railway', 'rail') }}, {{ keyTrans('usage') }}: {{ tagTrans('usage', 'main') }}</td>",
" </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"railway\": \"rail\" }))|raw }}</td>",
" <td>{{ tagTrans('railway', 'rail') }}</td>",
" </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"railway\": \"narrow_gauge\" }))|raw }}</td>",
" <td>{{ tagTrans('railway', 'narrow_gauge') }}</td>",
" </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"railway\": \"light_rail\" }))|raw }}</td>",
" <td>{{ tagTrans('railway', 'light_rail') }}</td>",
" </tr>",
" <tr>",
" <td>{{ markerLine(evaluate({ \"railway\": \"subway\" }))|raw }}</td>",
" <td>{{ tagTrans('railway', 'subway') }}</td>",
" </tr>",
"{{ console_log(map) }}",
"{% if map.zoom >= 14 %}",
" <tr>",
" <td>{{ markerLine(evaluate({ \"railway\": \"tram\" }))|raw }}</td>",
" <td>{{ tagTrans('railway', 'tram') }}</td>",
" </tr>",
"{% endif %}",
"</table>"
]
} }

40
religion.json

@ -17,13 +17,45 @@
"uk": "Релігія" "uk": "Релігія"
}, },
"query": { "query": {
"13": "(\nnode[amenity~\"^(place_of_worship|grave_yard|crematorium)$\"];\nway[amenity~\"^(place_of_worship|grave_yard|crematorium)$\"];\nrelation[amenity~\"^(place_of_worship|grave_yard|crematorium)$\"];\nway[landuse~\"^(cemetery)$\"];\nrelation[landuse~\"^(cemetery)$\"];\n)"
"13": [
"(",
"node[amenity~\"^(place_of_worship|grave_yard|crematorium)$\"];",
"way[amenity~\"^(place_of_worship|grave_yard|crematorium)$\"];",
"relation[amenity~\"^(place_of_worship|grave_yard|crematorium)$\"];",
"way[landuse~\"^(cemetery)$\"];",
"relation[landuse~\"^(cemetery)$\"];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.landuse == 'cemetery' %}\n{% set key = 'landuse' %}\n{% set value = tags.landuse %}\n{% else %}\n{% set key = 'amenity' %}\n{% set value = tags.amenity %}\n{% endif %}",
"pre": [
"{% if tags.landuse == 'cemetery' %}",
"{% set key = 'landuse' %}",
"{% set value = tags.landuse %}",
"{% else %}",
"{% set key = 'amenity' %}",
"{% set value = tags.amenity %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}{% if tags.religion %}: {{ tagTransList('religion', tags.religion) }}{% endif %}", "description": "{{ tagTrans(key, value) }}{% if tags.religion %}: {{ tagTransList('religion', tags.religion) }}{% endif %}",
"body": "{% if tags.religion %}\n {{ keyTrans('religion') }}: {{ tagTransList('religion', tags.religion) }}\n{% endif %}\n{% if tags.denomination %}\n <br/>\n {{ keyTrans('denomination') }}: {{ tagTransList('denomination', tags.denomination) }}\n{% endif %}",
"markerSign": "{% if tags.religion == 'christian' %}✝\n{% elseif tags.religion == 'muslim' %}☪\n{% elseif tags.religion == 'buddhist' %}☸\n{% elseif tags.religion == 'hindu' %}ॐ\n{% elseif tags.religion == 'jewish' %}✡\n{% elseif tags.religion == 'pagan' %}☆\n{% endif %}",
"body": [
"{% if tags.religion %}",
" {{ keyTrans('religion') }}: {{ tagTransList('religion', tags.religion) }}",
"{% endif %}",
"{% if tags.denomination %}",
" <br/>",
" {{ keyTrans('denomination') }}: {{ tagTransList('denomination', tags.denomination) }}",
"{% endif %}"
],
"markerSign": [
"{% if tags.religion == 'christian' %}✝",
"{% elseif tags.religion == 'muslim' %}☪",
"{% elseif tags.religion == 'buddhist' %}☸",
"{% elseif tags.religion == 'hindu' %}ॐ",
"{% elseif tags.religion == 'jewish' %}✡",
"{% elseif tags.religion == 'pagan' %}☆",
"{% endif %}"
],
"popupDescription": "{{ tagTrans(key, value) }}" "popupDescription": "{{ tagTrans(key, value) }}"
} }
} }

16
residential.json

@ -17,8 +17,20 @@
"uk": "Житлова зона" "uk": "Житлова зона"
}, },
"query": { "query": {
"13": "(\nnode[landuse~\"^(residential)$\"];\nway[landuse~\"^(residential)$\"];\nrelation[landuse~\"^(residential)$\"];\n)",
"15": "(\nnode[landuse~\"^(residential|allotments)$\"];\nway[landuse~\"^(residential|allotments)$\"];\nrelation[landuse~\"^(residential|allotments)$\"];\n)"
"13": [
"(",
"node[landuse~\"^(residential)$\"];",
"way[landuse~\"^(residential)$\"];",
"relation[landuse~\"^(residential)$\"];",
")"
],
"15": [
"(",
"node[landuse~\"^(residential|allotments)$\"];",
"way[landuse~\"^(residential|allotments)$\"];",
"relation[landuse~\"^(residential|allotments)$\"];",
")"
]
}, },
"feature": { "feature": {
"description": "{{ tagTrans('landuse', tags.landuse) }}" "description": "{{ tagTrans('landuse', tags.landuse) }}"

21
resources.json

@ -11,10 +11,27 @@
"ru": "Добыча ресурсов" "ru": "Добыча ресурсов"
}, },
"query": { "query": {
"11": "(\nnode[landuse~\"^(quarry|salt_pond)$\"];\nnode[man_made~\"^(mineshaft)$\"];\nway[landuse~\"^(quarry|salt_pond)$\"];\nway[man_made~\"^(mineshaft)$\"];\nrelation[landuse~\"^(quarry|salt_pond)$\"];\nrelation[man_made~\"^(mineshaft)$\"];\n)"
"11": [
"(",
"node[landuse~\"^(quarry|salt_pond)$\"];",
"node[man_made~\"^(mineshaft)$\"];",
"way[landuse~\"^(quarry|salt_pond)$\"];",
"way[man_made~\"^(mineshaft)$\"];",
"relation[landuse~\"^(quarry|salt_pond)$\"];",
"relation[man_made~\"^(mineshaft)$\"];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.landuse in [ 'quarry', 'salt_pond' ] %}\n {% set key = 'landuse' %}\n {% set value = tags.landuse %}\n{% else %}\n {% set key = 'man_made' %}\n {% set value = tags.man_made %}\n{% endif %}",
"pre": [
"{% if tags.landuse in [ 'quarry', 'salt_pond' ] %}",
" {% set key = 'landuse' %}",
" {% set value = tags.landuse %}",
"{% else %}",
" {% set key = 'man_made' %}",
" {% set value = tags.man_made %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}" "description": "{{ tagTrans(key, value) }}"
} }
} }

5
sport.json

@ -19,7 +19,10 @@
}, },
"feature": { "feature": {
"description": "{{ tagTransList('sport', tags.sport) }}", "description": "{{ tagTransList('sport', tags.sport) }}",
"markerSign": "{% set firstSport = tags.sport|split(';')[0] %}\n{{ const[firstSport] }}",
"markerSign": [
"{% set firstSport = tags.sport|split(';')[0] %}",
"{{ const[firstSport] }}"
],
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTransList('sport', tags.sport)) }}" "title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTransList('sport', tags.sport)) }}"
}, },
"const": { "const": {

8
tourism_attractions.json

@ -18,7 +18,13 @@
"uk": "Туризм" "uk": "Туризм"
}, },
"query": { "query": {
"13": "(\nnode[tourism][tourism!~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];\nway[tourism][tourism!~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];\nrelation[tourism][tourism!~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"]\n)"
"13": [
"(",
"node[tourism][tourism!~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
"way[tourism][tourism!~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
"relation[tourism][tourism!~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"]",
")"
]
}, },
"feature": { "feature": {
"description": "{{ tagTrans('tourism', tags.tourism) }}", "description": "{{ tagTrans('tourism', tags.tourism) }}",

8
tourism_services.json

@ -18,7 +18,13 @@
"uk": "Туризм" "uk": "Туризм"
}, },
"query": { "query": {
"13": "(\nnode[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];\nway[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];\nrelation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"]\n)"
"13": [
"(",
"node[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
"way[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"];",
"relation[tourism~\"^(alpine_hut|apartment|camp_site|caravan_site|chalet|guest_house|hostel|hotel|information|motel|wilderness_hut)$\"]",
")"
]
}, },
"feature": { "feature": {
"description": "{{ tagTrans('tourism', tags.tourism) }}", "description": "{{ tagTrans('tourism', tags.tourism) }}",

45
walk_amenities.json

@ -5,11 +5,50 @@
"de": "Einrichtungen" "de": "Einrichtungen"
}, },
"query": { "query": {
"13": "(\nnode[highway~\"^(elevator)$\"];\nnode[information];\nnode[tourism~\"^(viewpoint)$\"];\nnode[man_made~\"^(cairn)$\"];\nnode[amenity~\"^(shelter)$\"];\nway[amenity~\"^(shelter)$\"];\nrelation[amenity~\"^(shelter)$\"];\n)",
"17": "(\nnode[highway~\"^(crossing|elevator)$\"];\nnode[information];\nnode[tourism~\"^(viewpoint)$\"];\nnode[man_made~\"^(cairn)$\"];\nnode[amenity~\"^(shelter)$\"];\nway[amenity~\"^(shelter)$\"];\nrelation[amenity~\"^(shelter)$\"];\n)"
"13": [
"(",
"node[highway~\"^(elevator)$\"];",
"node[information];",
"node[tourism~\"^(viewpoint)$\"];",
"node[man_made~\"^(cairn)$\"];",
"node[amenity~\"^(shelter)$\"];",
"way[amenity~\"^(shelter)$\"];",
"relation[amenity~\"^(shelter)$\"];",
")"
],
"17": [
"(",
"node[highway~\"^(crossing|elevator)$\"];",
"node[information];",
"node[tourism~\"^(viewpoint)$\"];",
"node[man_made~\"^(cairn)$\"];",
"node[amenity~\"^(shelter)$\"];",
"way[amenity~\"^(shelter)$\"];",
"relation[amenity~\"^(shelter)$\"];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.information %}\n {% set key = 'information' %}\n {% set value = tags.information %}\n{% elseif tags.amenity in [ 'bench', 'shelter' ] %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% elseif tags.man_made in [ 'cairn' ] %}\n {% set key = 'man_made' %}\n {% set value = tags.man_made %}\n{% elseif tags.tourism in [ 'viewpoint'] %}\n {% set key = 'tourism' %}\n {% set value = tags.tourism %}\n{% else %}\n {% set key = 'highway' %}\n {% set value = tags.highway %}\n{% endif %}\n\n{% set type_data = const[value] %}",
"pre": [
"{% if tags.information %}",
" {% set key = 'information' %}",
" {% set value = tags.information %}",
"{% elseif tags.amenity in [ 'bench', 'shelter' ] %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% elseif tags.man_made in [ 'cairn' ] %}",
" {% set key = 'man_made' %}",
" {% set value = tags.man_made %}",
"{% elseif tags.tourism in [ 'viewpoint'] %}",
" {% set key = 'tourism' %}",
" {% set value = tags.tourism %}",
"{% else %}",
" {% set key = 'highway' %}",
" {% set value = tags.highway %}",
"{% endif %}",
"",
"{% set type_data = const[value] %}"
],
"description": "{{ tagTrans(key, value) }}", "description": "{{ tagTrans(key, value) }}",
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}", "title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}",
"markerSign": "{{ type_data.sign|raw }}", "markerSign": "{{ type_data.sign|raw }}",

47
waste.json

@ -12,12 +12,51 @@
"ru": "Переработка отходов" "ru": "Переработка отходов"
}, },
"query": { "query": {
"13": "(\nnode[landuse=landfill];\nnode[man_made=wastewater_plant];\nnode[amenity=recycling][recycling_type=centre];\nway[landuse=landfill];\nway[man_made=wastewater_plant];\nway[amenity=recycling][recycling_type=centre];\nrelation[landuse=landfill];\nrelation[man_made=wastewater_plant];\nrelation[amenity=recycling][recycling_type=centre];\n)",
"15": "(\nnode[landuse=landfill];\nnode[man_made=wastewater_plant];\nnode[amenity=recycling];\nway[landuse=landfill];\nway[man_made=wastewater_plant];\nway[amenity=recycling];\nrelation[landuse=landfill];\nrelation[man_made=wastewater_plant];\nrelation[amenity=recycling];\n)"
"13": [
"(",
"node[landuse=landfill];",
"node[man_made=wastewater_plant];",
"node[amenity=recycling][recycling_type=centre];",
"way[landuse=landfill];",
"way[man_made=wastewater_plant];",
"way[amenity=recycling][recycling_type=centre];",
"relation[landuse=landfill];",
"relation[man_made=wastewater_plant];",
"relation[amenity=recycling][recycling_type=centre];",
")"
],
"15": [
"(",
"node[landuse=landfill];",
"node[man_made=wastewater_plant];",
"node[amenity=recycling];",
"way[landuse=landfill];",
"way[man_made=wastewater_plant];",
"way[amenity=recycling];",
"relation[landuse=landfill];",
"relation[man_made=wastewater_plant];",
"relation[amenity=recycling];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% if tags.landuse == 'landfill' %}\n {% set key = 'landuse' %}\n {% set value = tags.landuse %}\n{% elseif tags.man_made == 'wastewater_plant' %}\n {% set key = 'man_made' %}\n {% set value = tags.man_made %}\n{% elseif tags.amenity == 'recycling' %}\n {% set key = 'amenity' %}\n {% set value = tags.amenity %}\n{% endif %}",
"pre": [
"{% if tags.landuse == 'landfill' %}",
" {% set key = 'landuse' %}",
" {% set value = tags.landuse %}",
"{% elseif tags.man_made == 'wastewater_plant' %}",
" {% set key = 'man_made' %}",
" {% set value = tags.man_made %}",
"{% elseif tags.amenity == 'recycling' %}",
" {% set key = 'amenity' %}",
" {% set value = tags.amenity %}",
"{% endif %}"
],
"description": "{{ tagTrans(key, value) }}", "description": "{{ tagTrans(key, value) }}",
"body": "{% if tags.recycling_type %}\n{{ keyTrans('recycling_type') }}: {{ tagTrans('recycling_type', tags.recycling_type) }}\n{% endif %}"
"body": [
"{% if tags.recycling_type %}",
"{{ keyTrans('recycling_type') }}: {{ tagTrans('recycling_type', tags.recycling_type) }}",
"{% endif %}"
]
} }
} }

49
wikipedia.json

@ -4,11 +4,52 @@
"en": "Wikipedia" "en": "Wikipedia"
}, },
"query": { "query": {
"14": "(\nnode[~\"wikipedia\"~\".\"];\nway[~\"wikipedia\"~\".\"];\nrelation[~\"wikipedia\"~\".\"];\n\nnode[~\"wikidata$\"~\".\"];\nway[~\"wikidata$\"~\".\"];\nrelation[~\"wikidata$\"~\".\"];\n\nnode[wikimedia_commons];\nway[wikimedia_commons];\nrelation[wikimedia_commons];\n)"
"14": [
"(",
"node[~\"wikipedia\"~\".\"];",
"way[~\"wikipedia\"~\".\"];",
"relation[~\"wikipedia\"~\".\"];",
"",
"node[~\"wikidata$\"~\".\"];",
"way[~\"wikidata$\"~\".\"];",
"relation[~\"wikidata$\"~\".\"];",
"",
"node[wikimedia_commons];",
"way[wikimedia_commons];",
"relation[wikimedia_commons];",
")"
]
}, },
"feature": { "feature": {
"pre": "{% set errors = [] %}\n{% for k, v in tags %}\n\n{% if k|matches(\"^wikipedia:\") %}\n {% set errors = errors|merge([\"Uses <tt>wikipedia</tt> and old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}\n{% elseif k|matches(\"^wikipedia:\") %}\n {% set errors = errors|merge([\"Uses old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}\n{% endif %}\n\n{% if k|matches(\":?wikipedia$\") and not v|matches(\"^[a-z-]+:\") %}\n {% set errors = errors|merge([\"Tag <tt>\" ~ k ~ \"</tt> does not contain language information: \" ~ v ]) %}\n{% endif %}\n\n{% endfor %}",
"description": "{% if errors|length %}\n{{ errors|length }} {{ trans('error', errors|length) }}\n{% endif %}",
"body": "{% if errors|length %}\n{{ trans('error', errors|length) }}:<ul>\n{% for e in errors %}\n <li>{{ e|raw }}</li>\n{% endfor %}\n</ul>\n{% endif %}"
"pre": [
"{% set errors = [] %}",
"{% for k, v in tags %}",
"",
"{% if k|matches(\"^wikipedia:\") %}",
" {% set errors = errors|merge([\"Uses <tt>wikipedia</tt> and old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}",
"{% elseif k|matches(\"^wikipedia:\") %}",
" {% set errors = errors|merge([\"Uses old-style <tt>\" ~ k ~ \"</tt> tag\"]) %}",
"{% endif %}",
"",
"{% if k|matches(\":?wikipedia$\") and not v|matches(\"^[a-z-]+:\") %}",
" {% set errors = errors|merge([\"Tag <tt>\" ~ k ~ \"</tt> does not contain language information: \" ~ v ]) %}",
"{% endif %}",
"",
"{% endfor %}"
],
"description": [
"{% if errors|length %}",
"{{ errors|length }} {{ trans('error', errors|length) }}",
"{% endif %}"
],
"body": [
"{% if errors|length %}",
"{{ trans('error', errors|length) }}:<ul>",
"{% for e in errors %}",
" <li>{{ e|raw }}</li>",
"{% endfor %}",
"</ul>",
"{% endif %}"
]
} }
} }
Loading…
Cancel
Save