diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-02-19 23:18:53 +0200 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-02-19 23:18:53 +0200 |
commit | 731095e2d9757c7bcc459a54caf6ff13b1f3cb23 (patch) | |
tree | 7d5a6eaa65d939eb11a0b7d8b9b9b919a961a6ab | |
parent | 6586c00a379b87d7d38b27839b099fa17f3b4502 (diff) | |
download | troggle-731095e2d9757c7bcc459a54caf6ff13b1f3cb23.tar.gz troggle-731095e2d9757c7bcc459a54caf6ff13b1f3cb23.tar.bz2 troggle-731095e2d9757c7bcc459a54caf6ff13b1f3cb23.zip |
GPS of photo now has href to OSM online
-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) |