From 017f916ef922bd11b1e745ccc4fa4bccd843f1d4 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 16 Sep 2023 22:46:17 +0300 Subject: Entrance locations showing lat long screwups --- core/models/survex.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/models/survex.py') diff --git a/core/models/survex.py b/core/models/survex.py index 9a5145c..1c6a1fe 100644 --- a/core/models/survex.py +++ b/core/models/survex.py @@ -67,7 +67,10 @@ class SurvexStation(models.Model): def latlong(self): return utmToLatLng(33, self.x, self.y, northernHemisphere=True) - + def lat(self): + return utmToLatLng(33, self.x, self.y, northernHemisphere=True)[0] + def long(self): + return utmToLatLng(33, self.x, self.y, northernHemisphere=True)[1] import math def utmToLatLng(zone, easting, northing, northernHemisphere=True): # move this to utils.py ? -- cgit v1.2.3