summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-02-21 19:31:24 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2025-02-21 19:31:24 +0200
commit81fba01d1e047a07c0f466ff66fe217e9f8a6f8f (patch)
tree618e3421386fe03c789b1e824eefcabdcc2a302d /core
parent731095e2d9757c7bcc459a54caf6ff13b1f3cb23 (diff)
downloadtroggle-81fba01d1e047a07c0f466ff66fe217e9f8a6f8f.tar.gz
troggle-81fba01d1e047a07c0f466ff66fe217e9f8a6f8f.tar.bz2
troggle-81fba01d1e047a07c0f466ff66fe217e9f8a6f8f.zip
comments
Diffstat (limited to 'core')
-rw-r--r--core/views/editor_helpers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/editor_helpers.py b/core/views/editor_helpers.py
index c5390cf..4f6dde8 100644
--- a/core/views/editor_helpers.py
+++ b/core/views/editor_helpers.py
@@ -213,7 +213,8 @@ def extract_gps(dict):
print("failed to find latitude")
location = f'<a href="https://www.openstreetmap.org/?mlat={latitude}&mlon={longitude}">{latitude:09.6f} {latref}, {longitude:010.6f} {lonref}</a>'
- # 3 digits for longitude, 2 for latitude.
+ # 3 digits for longitude (0-359) or +/-(0-180), 2 for latitude +/-(0-90)
+ # we might want to rectify longitude to be always +(0-359)?
print(direction)
print(altitude)
print(timestamp_utc)