A repository for testing purposes.
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.

60 lines
1.5 KiB

  1. {
  2. "type": "overpass",
  3. "name": {
  4. "en": "Edible Trees",
  5. "de": "Essbare Bäume"
  6. },
  7. "query": {
  8. "14": [
  9. "(",
  10. "node[natural=tree][species~\"^(Malus|Pyrus|Morus|Prunus persica|Prunus cerasus)\"];",
  11. ");"
  12. ]
  13. },
  14. "feature": {
  15. "description": "{{ localizedTag(tags, 'species') }}",
  16. "markerSign": [
  17. "{% for data in const %}",
  18. "{% if tags.species|matches(data.match) %}",
  19. "{{ data.icon }}",
  20. "{% endif %}",
  21. "{% endfor %}"
  22. ]
  23. },
  24. "info": [
  25. "<table>",
  26. "{% for data in const %}",
  27. " <tr>",
  28. " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.icon }}</div></td>",
  29. " <td>{{ attribute(data, \"name:en\") }}</td>",
  30. " </tr>",
  31. "{% endfor %}",
  32. "</table>"
  33. ],
  34. "const": [
  35. {
  36. "match": "^Malus",
  37. "icon": "🍏",
  38. "name:en": "Apple"
  39. },
  40. {
  41. "match": "^Pyrus",
  42. "icon": "🍐",
  43. "name:en": "Pear"
  44. },
  45. {
  46. "match": "^Morus",
  47. "icon": "M",
  48. "name:en": "Mulberry"
  49. },
  50. {
  51. "match": "^Prunus persica",
  52. "icon": "🍑",
  53. "name:en": "Peach"
  54. },
  55. {
  56. "match": "^Prunus cerasus",
  57. "icon": "🍒",
  58. "name:en": "Cherry"
  59. }
  60. ]
  61. }