diff --git a/climbing.json b/climbing.json new file mode 100644 index 0000000..1ffe33d --- /dev/null +++ b/climbing.json @@ -0,0 +1,76 @@ +{ + "type": "overpass", + "name": { + "en": "Climbing" + }, + "query": { + "12": [ + "(", + "nwr[sport~\"^(.*;|)climbing(|;.*)$\"];", + "nwr[highway=via_ferrata];", + "nwr[climbing~\"^(route|crag|boulder)$\"];", + "nwr[~\"^climbing:\"~\"^(yes|[0-9]+)$\"];", + ")" + ], + "16": [ + "(", + "nwr[sport~\"^(.*;|)climbing(|;.*)$\"];", + "nwr[highway=via_ferrata];", + "nwr[climbing];", + "nwr[~\"^climbing:\"~\"^(yes|[0-9]+)$\"];", + ")" + ] + }, + "feature": { + "description": [ + "{% set dash = false %}", + "{% if tags.natural %}", + " {{ tagTransList('natural', tags.natural) }}", + " {% set dash=true %}", + "{% elseif tags.leisure %}", + " {% if dash %} - {% endif %}", + " {{ tagTransList('leisure', tags.leisure) }}", + " {% set dash=true %}", + "{% endif %}", + "", + "{% if tags.highway == 'via_ferrata' %}", + " {% if dash %} - {% endif %}", + " {{ tagTrans('highway', 'via_ferrata') }}", + " {% set dash=true %}", + "{% endif %}", + "", + "{% if tags.climbing and tags.climbing != 'yes' %}", + " {% if dash %} - {% endif %}", + " {{ tagTransList('climbing', tags.climbing) }}", + "{% endif %}" + ], + "body": [ + "" + ] + } +} diff --git a/outdoor.json b/outdoor.json index eb3c290..d6b7aa7 100644 --- a/outdoor.json +++ b/outdoor.json @@ -10,6 +10,9 @@ "subCategories": [ { "id": "mtb-routes" + }, + { + "id": "climbing" } ] }