forked from OpenStreetBrowser/main
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.
117 lines
3.4 KiB
117 lines
3.4 KiB
{
|
|
"type": "overpass",
|
|
"name": {
|
|
"de": "Einrichtungen für Kinder",
|
|
"en": "Children amenities",
|
|
"fr": "Équipements pour enfants",
|
|
"pt-br": "Equipamentos Infantis"
|
|
},
|
|
"query": {
|
|
"15": [
|
|
"(",
|
|
"node[leisure~'^(playground|summer_camp|indoor_play)$'];",
|
|
"way[leisure~'^(playground|summer_camp|indoor_play)$'];",
|
|
"relation[leisure~'^(playground|summer_camp|indoor_play)$'];",
|
|
"node[shop~'^(baby_goods|toys)$'];",
|
|
"way[shop~'^(baby_goods|toys)$'];",
|
|
"relation[shop~'^(baby_goods|toys)$'];",
|
|
"node[amenity=toilets][diaper];",
|
|
"way[amenity=toilets][diaper];relation[amenity=toilets][diaper];",
|
|
"node[kids_area];",
|
|
"way[kids_area];",
|
|
"relation[kids_area];",
|
|
");"
|
|
],
|
|
"17": [
|
|
"(",
|
|
"node[leisure~'^(playground|summer_camp|indoor_play)$'];",
|
|
"way[leisure~'^(playground|summer_camp|indoor_play)$'];",
|
|
"relation[leisure~'^(playground|summer_camp|indoor_play)$'];",
|
|
"node[shop~'^(baby_goods|toys)$'];",
|
|
"way[shop~'^(baby_goods|toys)$'];",
|
|
"relation[shop~'^(baby_goods|toys)$'];",
|
|
"node[amenity=toilets][diaper];",
|
|
"way[amenity=toilets][diaper];relation[amenity=toilets][diaper];",
|
|
"node[kids_area];",
|
|
"way[kids_area];",
|
|
"relation[kids_area];",
|
|
"node[playground];",
|
|
"way[playground];",
|
|
"relation[playground];",
|
|
");"
|
|
]
|
|
},
|
|
"feature": {
|
|
"pre": [
|
|
"{% if tags.leisure %}",
|
|
" {% set key = 'leisure' %}",
|
|
" {% set value = tags.leisure %}",
|
|
"{% elseif tags.kids_area %}",
|
|
" {% set key = 'kids_area' %}",
|
|
" {% set value = tags.kids_area %}",
|
|
"{% elseif tags.shop %}",
|
|
" {% set key = 'shop' %}",
|
|
" {% set value = tags.shop %}",
|
|
"{% elseif tags.playground %}",
|
|
" {% set key = 'playground' %}",
|
|
" {% set value = tags.playground %}",
|
|
"{% else %}",
|
|
" {% set key = 'amenity' %}",
|
|
" {% set value = tags.amenity %}",
|
|
"{% endif %}",
|
|
"",
|
|
"{% set type_data = const[key ~ '=' ~ value] |default(const['default=yes']) %}"
|
|
],
|
|
"title": "{{ keyTrans(key) }}: {{localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(tagTrans(key, value)) }}",
|
|
"description": "{{ type_data }}",
|
|
"markerSign": "{{ type_data.sign|raw }}",
|
|
"priority": "{{ type_data.priority }}",
|
|
"style": {
|
|
"fillColor": "{% if tags.playground!='' %}#3388ff{% else %}#1dc140{% endif %}"
|
|
}
|
|
},
|
|
"info": [
|
|
"<table>",
|
|
"{% for value, data in const %}",
|
|
" <tr>",
|
|
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
|
|
" <td>{{ tagTrans(value|split('=')[0], value|split('=')[1]) }}</td>",
|
|
" </tr>",
|
|
"{% endfor %}",
|
|
"</table>"
|
|
],
|
|
"const": {
|
|
"leisure=playground": {
|
|
"priority": 10,
|
|
"sign": "⛹"
|
|
},
|
|
"leisure=summer_camp": {
|
|
"priority": 10,
|
|
"sign": "🏕"
|
|
},
|
|
"leisure=indoor_play": {
|
|
"priority": 8,
|
|
"sign": "🏠"
|
|
},
|
|
"shop=baby_goods": {
|
|
"priority": 8,
|
|
"sign": "<i class=\"fa fa-shopping-cart\"></i>"
|
|
},
|
|
"shop=toys": {
|
|
"priority": 8,
|
|
"sign": "<i class=\"fa fa-shopping-cart\"></i>"
|
|
},
|
|
"amenity=toilets": {
|
|
"priority": 6,
|
|
"sign": "🚽🚼"
|
|
},
|
|
"playground=swing": {
|
|
"priority": 4,
|
|
"sign": ""
|
|
},
|
|
"default=yes": {
|
|
"priority": 0,
|
|
"sign": "X"
|
|
}
|
|
}
|
|
}
|