forked from expo/troggle
kml file output for google earth etc
This commit is contained in:
@@ -420,6 +420,26 @@ class Entrance(TroggleModel):
|
||||
return cavelist[0].url_parent()
|
||||
else:
|
||||
return ""
|
||||
|
||||
def latlong(self):
|
||||
station = None
|
||||
if self.other_station:
|
||||
try:
|
||||
station = SurvexStation.objects.get(name = self.other_station)
|
||||
except:
|
||||
pass
|
||||
if self.tag_station:
|
||||
try:
|
||||
station = SurvexStation.objects.get(name = self.tag_station)
|
||||
except:
|
||||
pass
|
||||
if self.exact_station:
|
||||
try:
|
||||
station = SurvexStation.objects.get(name = self.exact_station)
|
||||
except:
|
||||
pass
|
||||
if station:
|
||||
return station.latlong()
|
||||
|
||||
|
||||
def GetCaveLookup():
|
||||
|
||||
Reference in New Issue
Block a user