diff --git a/edible-trees.json b/edible-trees.json new file mode 100644 index 0000000..7441abf --- /dev/null +++ b/edible-trees.json @@ -0,0 +1,61 @@ +{ + "type": "overpass", + "name": { + "en": "Edible Trees", + "de": "Essbare BΓ€ume" + }, + "query": { + "14": [ + "(", + "node[natural=tree][species~\"^(Malus|Pyrus|Morus|Prunus persica|Prunus cerasus)\"];", + ");" + ] + }, + "feature": { + "description": "{{ localizedTag(tags, 'species') }}", + "markerSign": [ + "{% for data in const %}", + "{% if tags.species|matches(data.match) %}", + "{{ data.icon }}", + "{% endif %}", + "{% endfor %}" + ] + }, + "info": [ + "", + "{% for data in const %}", + " ", + " ", + " ", + " ", + "{% endfor %}", + "
{{ markerCircle({})|raw }}
{{ data.icon }}
{{ attribute(data, \"name:en\") }}
" + ], + "const": [ + { + "match": "^Malus", + "icon": "🍏", + "name:en": "Apple" + }, + { + "match": "^Pyrus", + "icon": "🍐", + "name:en": "Pear" + }, + { + "match": "^Morus", + "icon": "M", + "name:en": "Mulberry" + }, + { + "match": "^Prunus persica", + "icon": "πŸ‘", + "name:en": "Peach" + }, + { + "match": "^Prunus cerasus", + "icon": "πŸ’", + "name:en": "Cherry" + } + ] +} \ No newline at end of file