forked from OpenStreetBrowser/main
Stephan Bösch-Plepelits
7 years ago
35 changed files with 292 additions and 67 deletions
-
2administrative.json
-
3agriculture.json
-
1car_amenities.json
-
8children.json
-
118commonBody.html
-
5communication.json
-
3construction.json
-
1culture.json
-
2cycle_amenities.json
-
133detailsBody.html
-
5education.json
-
1emergency.json
-
1financial.json
-
9gastro.json
-
1health.json
-
1hiking_routes.json
-
1historic.json
-
8leisure.json
-
3military.json
-
3natural.json
-
5places.json
-
10power.json
-
1pt_amenities.json
-
3pt_stops.json
-
5public.json
-
2railway.json
-
5religion.json
-
3residential.json
-
3resources.json
-
7shop.json
-
1sport.json
-
1tourism_attractions.json
-
1tourism_services.json
-
1walk_amenities.json
-
2waste.json
@ -1,14 +1,14 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Einrichtungen für Kinder", |
|||
"en": "Children amenities" |
|||
}, |
|||
"type": "overpass", |
|||
"query": "(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];);", |
|||
"minZoom": 15, |
|||
"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];);" |
|||
}, |
|||
"feature": { |
|||
"markerSign": "{% if tags.leisure=='playground' %}⛹{% elseif tags.leisure=='summer_camp'%}🏕{% elseif tags.leisure=='indoor_play' or tags.kids_area %}🏠{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}<i class=\"fa fa-shopping-cart\"></i>{% elseif tags.amenity=='toilets' and tags.diaper %}🚽🚼{% endif %}", |
|||
"body": "{% if tags.leisure=='playground' %}{{ tagTrans('leisure', 'playground') }}{% elseif tags.leisure=='summer_camp'%}{{ tagTrans('leisure', 'summer_camp') }}{% elseif tags.leisure=='indoor_play' %}{{ tagTrans('leisure', 'indoor_play') }}{% elseif tags.kids_area %}{{ keyTrans('kids_area') }}{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}{{ keyTrans('shop') }}: {{ tagTrans('shop', tags.shop) }}{% elseif tags.amenity=='toilets' and tags.diaper %}{{ tagTrans('amenity', 'toilets') }} with diaper changing table{% endif %}", |
|||
"description": "{% if tags.leisure=='playground' %}{{ tagTrans('leisure', 'playground') }}{% elseif tags.leisure=='summer_camp'%}{{ tagTrans('leisure', 'summer_camp') }}{% elseif tags.leisure=='indoor_play' %}{{ tagTrans('leisure', 'indoor_play') }}{% elseif tags.kids_area %}{{ keyTrans('kids_area') }}{% elseif tags.shop=='baby_goods' or tags.shop=='toys' %}{{ keyTrans('shop') }}: {{ tagTrans('shop', tags.shop) }}{% elseif tags.amenity=='toilets' and tags.diaper %}{{ tagTrans('amenity', 'toilets') }} with diaper changing table{% endif %}" |
|||
} |
|||
} |
@ -0,0 +1,118 @@ |
|||
<ul> |
|||
{% set address = tagsPrefix(tags, 'addr:') %} |
|||
{% if address %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-map-marker" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('addr') }}:</span> |
|||
<span class='value'> |
|||
{{ attribute(tags, 'addr:street') }} |
|||
{{ attribute(tags, 'addr:housenumber') }}, |
|||
{{ attribute(tags, 'addr:postcode') }} |
|||
{{ attribute(tags, 'addr:city') }} |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if tags.website %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-globe" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('website') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='{{ tags.website }}'>{{ tags.website }}</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'contact:website') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-globe" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('website') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if tags.phone %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-phone" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('phone') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='tel:{{ tags.phone }}'>{{ tags.phone }}</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'contact:phone') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-phone" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('phone') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'contact:email') or tags.email %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-user-circle" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('contact') }}:</span> |
|||
<span class='value'> |
|||
|
|||
{% if attribute(tags, 'contact:email') %} |
|||
<a target='_blank' href='mailto:{{ attribute(tags, 'contact:email') }}'> |
|||
<i class="fa fa-envelope" aria-hidden="true"></i> |
|||
</a> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'email') %} |
|||
<a target='_blank' href='mailto:{{ attribute(tags, 'email') }}'> |
|||
<i class="fa fa-envelope" aria-hidden="true"></i> |
|||
</a> |
|||
{% endif %} |
|||
|
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if tags.opening_hours %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-clock-o" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('opening_hours') }}:</span> |
|||
<span class='value'> |
|||
{{ tags.opening_hours }} |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% set payment = tagsPrefix(tags, 'payment:') %} |
|||
{% if payment %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-money" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('payment') }}:</span> |
|||
<span class='value'> |
|||
{% for k, tag in payment %} |
|||
{% if tags[tag] == 'no' %}<s>{{ k }}</s> {% else %}{{ k }} {% endif %} |
|||
{% endfor %} |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'wheelchair') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-info-circle" aria-hidden="true"></i> |
|||
<span class='key'>{{ trans('facilities') }}:</span> |
|||
<span class='value'> |
|||
|
|||
{% if attribute(tags, 'wheelchair') %} |
|||
<i class="fa fa-wheelchair-alt {{ tags.wheelchair }}" aria-hidden="true" title='{{ keyTrans('wheelchair') }}: {{ tagTrans('wheelchair', tags.wheelchair) }}'></i> |
|||
|
|||
{% if attribute(tags, 'toilets:wheelchair') %} |
|||
(<span class='{{ attribute(tags, 'toilets:wheelchair') }}' title='{{ keyTrans('toilets:wheelchair') }}: {{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}'>🚽</span>) |
|||
{% endif %} |
|||
{% endif %} |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
</ul> |
@ -0,0 +1,133 @@ |
|||
<ul> |
|||
{% set address = tagsPrefix(tags, 'addr:') %} |
|||
{% if address %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-map-marker" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('addr') }}:</span> |
|||
<span class='value'> |
|||
{{ attribute(tags, 'addr:street') }} |
|||
{{ attribute(tags, 'addr:housenumber') }}, |
|||
{{ attribute(tags, 'addr:postcode') }} |
|||
{{ attribute(tags, 'addr:city') }} |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if tags.website %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-globe" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('website') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='{{ tags.website }}'>{{ tags.website }}</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'contact:website') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-globe" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('website') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if tags.phone %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-phone" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('phone') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='tel:{{ tags.phone }}'>{{ tags.phone }}</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'contact:phone') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-phone" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('phone') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='tel:{{ attribute(tags, 'contact:phone') }}'>{{ attribute(tags, 'contact:phone') }}</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'contact:email') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-envelope" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('email') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='mailto:{{ attribute(tags, 'contact:email') }}'> |
|||
{{ attribute(tags, 'contact:email') }} |
|||
</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'email') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-envelope" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('email') }}:</span> |
|||
<span class='value'> |
|||
<a target='_blank' href='mailto:{{ attribute(tags, 'email') }}'> |
|||
{{ attribute(tags, 'email') }} |
|||
</a> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if tags.opening_hours %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-clock-o" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('opening_hours') }}:</span> |
|||
<span class='value'> |
|||
{{ tags.opening_hours }} |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% set payment = tagsPrefix(tags, 'payment:') %} |
|||
{% if payment %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-money" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('payment') }}:</span> |
|||
<span class='value'> |
|||
{% for k, tag in payment %} |
|||
{% if tags[tag] == 'no' %}<s>{{ k }}</s> {% else %}{{ k }} {% endif %} |
|||
{% endfor %} |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
{% if attribute(tags, 'wheelchair') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-info-circle" aria-hidden="true"></i> |
|||
<span class='key'>{{ trans('facilities') }}:</span> |
|||
<span class='value'> |
|||
|
|||
<ul> |
|||
{% if attribute(tags, 'wheelchair') %} |
|||
<li class='hasSymbol'> |
|||
<i class="fa fa-wheelchair-alt {{ tags.wheelchair }}" aria-hidden="true"></i> |
|||
<span class='key'>{{ keyTrans('wheelchair') }}:</span> |
|||
<span class='value'> |
|||
{{ tagTrans('wheelchair', tags.wheelchair) }} |
|||
<ul> |
|||
{% if attribute(tags, 'toilets:wheelchair') %} |
|||
<li class='hasSymbol'> |
|||
<span class='{{ attribute(tags, 'toilets:wheelchair') }} symbol'>🚽</span> |
|||
<span class='key'>{{ keyTrans('toilets:wheelchair') }}:</span> |
|||
<span class='value'>{{ tagTrans('toilets:wheelchair', attribute(tags, 'toilets:wheelchair')) }}</span> |
|||
</li> |
|||
{% endif %} |
|||
</ul> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
</ul> |
|||
</span> |
|||
</li> |
|||
{% endif %} |
|||
|
|||
</ul> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue