summaryrefslogtreecommitdiffstats
path: root/core/views/caves.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/caves.py')
-rw-r--r--core/views/caves.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/views/caves.py b/core/views/caves.py
index 2fad12c..1ad8dcf 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -615,3 +615,13 @@ def qm(request, cave_id, qm_id, year, grade=None, blockname=None):
"badslug": f"QM.DoesNotExist blockname is not empty string {cave_id=} {year=} {qm_id=} {grade=} {blockname=}"
},
)
+
+def expo_kml(request):
+ return render(
+ request,
+ "expo.kml",
+ {
+ "entrances": Entrance.objects.all()
+ },
+ content_type = "application/vnd.google-earth.kml+xml"
+ )