diff options
author | Sam Wenham <sam@wenhams.co.uk> | 2019-03-04 19:39:43 +0000 |
---|---|---|
committer | Sam Wenham <sam@wenhams.co.uk> | 2019-03-04 19:39:43 +0000 |
commit | e01507d54112cfc61748eeff27a3a264e1ad7516 (patch) | |
tree | 78feffcf35678d76afb7b2e9929f3c4eb2ac993a /core/methods_millenial.py | |
parent | b505a26ce4111c23842e3593c1b6e7f78e06e0ec (diff) | |
download | troggle-e01507d54112cfc61748eeff27a3a264e1ad7516.tar.gz troggle-e01507d54112cfc61748eeff27a3a264e1ad7516.tar.bz2 troggle-e01507d54112cfc61748eeff27a3a264e1ad7516.zip |
Backed out changeset: f23440eb11a3
Diffstat (limited to 'core/methods_millenial.py')
-rw-r--r-- | core/methods_millenial.py | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/core/methods_millenial.py b/core/methods_millenial.py index ce7ce11..5d2483a 100644 --- a/core/methods_millenial.py +++ b/core/methods_millenial.py @@ -1,24 +1,2 @@ -import utm -import math -from django.conf import settings - -def lat_lon_entrance(utmstring): - try: - x = float(utmstring.split()[0]) - y = float(utmstring.split()[1]) - #return ' '+str(x+y)+' '+str(y) - q = utm.to_latlon(x, y, 33, 'U') - return "{:.5f} {:.5f}".format(q[0],q[1]) - except: - return 'Not found' - -def top_camp_distance(utmstring): - try: - x = float(utmstring.split()[0]) - y = float(utmstring.split()[1]) - tx = settings.TOPCAMPX - ty = settings.TOPCAMPY - dist = math.sqrt( (tx-x)*(tx-x) + (ty-y)*(ty-y) ) - return "{:.1f}".format(dist) - except: - return 'Not found' +def emptyfun(): + return |