Show GPS coordinates on separate line under location name
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -424,7 +424,7 @@ app.get("/", (_req, res) => {
|
|||||||
td1.textContent = k;
|
td1.textContent = k;
|
||||||
const td2 = document.createElement("td");
|
const td2 = document.createElement("td");
|
||||||
td2.textContent = meta[k];
|
td2.textContent = meta[k];
|
||||||
if (k === "GPS Location") td2.className = "warn";
|
if (k === "GPS Location" || k === "GPS Coordinates") td2.className = "warn";
|
||||||
tr.appendChild(td1);
|
tr.appendChild(td1);
|
||||||
tr.appendChild(td2);
|
tr.appendChild(td2);
|
||||||
removedBody.appendChild(tr);
|
removedBody.appendChild(tr);
|
||||||
@@ -501,6 +501,7 @@ async function extractMetadata(buf) {
|
|||||||
}
|
}
|
||||||
} catch {}
|
} catch {}
|
||||||
items.push(["GPS Location", loc]);
|
items.push(["GPS Location", loc]);
|
||||||
|
items.push(["GPS Coordinates", `${latFinal.toFixed(6)}, ${lngFinal.toFixed(6)}`]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exif.Photo?.DateTimeOriginal) {
|
if (exif.Photo?.DateTimeOriginal) {
|
||||||
|
|||||||
Reference in New Issue
Block a user