diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-09-16 22:46:17 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-09-16 22:46:17 +0300 |
commit | 017f916ef922bd11b1e745ccc4fa4bccd843f1d4 (patch) | |
tree | 36ca99a86ffc550f4b4203a6f16b6f870c510707 /core/models/survex.py | |
parent | a85f859f886ac2a22a94a604f2ce46395c148476 (diff) | |
download | troggle-017f916ef922bd11b1e745ccc4fa4bccd843f1d4.tar.gz troggle-017f916ef922bd11b1e745ccc4fa4bccd843f1d4.tar.bz2 troggle-017f916ef922bd11b1e745ccc4fa4bccd843f1d4.zip |
Entrance locations showing lat long screwups
Diffstat (limited to 'core/models/survex.py')
-rw-r--r-- | core/models/survex.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 ? |