diff options
-rw-r--r-- | core/views/editor_helpers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/views/editor_helpers.py b/core/views/editor_helpers.py index e0838b6..c5390cf 100644 --- a/core/views/editor_helpers.py +++ b/core/views/editor_helpers.py @@ -212,7 +212,8 @@ def extract_gps(dict): else: print("failed to find latitude") - location = f"{latitude:08.5f} {latref}, {longitude:09.5f} {lonref}" + 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. print(direction) print(altitude) print(timestamp_utc) |