forked from expo/troggle
kml file output for google earth etc
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user