From 731095e2d9757c7bcc459a54caf6ff13b1f3cb23 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 19 Feb 2025 23:18:53 +0200 Subject: GPS of photo now has href to OSM online --- core/views/editor_helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'{latitude:09.6f} {latref}, {longitude:010.6f} {lonref}' + # 3 digits for longitude, 2 for latitude. print(direction) print(altitude) print(timestamp_utc) -- cgit v1.2.3