2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 22:37:10 +00:00

GPS of photo now has href to OSM online

This commit is contained in:
2025-02-19 23:18:53 +02:00
parent 6586c00a37
commit 731095e2d9

View File

@@ -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)