mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 02:07:07 +00:00
Entrance locations showing lat long screwups
This commit is contained in:
@@ -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 ?
|
||||
|
||||
Reference in New Issue
Block a user