π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use fileLocation helper for extracting photo coordinates in TripLayout
Anand Baburajan8fdb098d70ea
diff --git a/web/apps/photos/src/components/TripLayout/utils/dataProcessing.ts b/web/apps/photos/src/components/TripLayout/utils/dataProcessing.tsindex dd4a0d3f2c..f8f02fb160 100644--- a/web/apps/photos/src/components/TripLayout/utils/dataProcessing.ts+++ b/web/apps/photos/src/components/TripLayout/utils/dataProcessing.ts@@ -1,6 +1,6 @@import { downloadManager } from "ente-gallery/services/download";import { type EnteFile } from "ente-media/file";-import { fileFileName } from "ente-media/file-metadata";+import { fileFileName, fileLocation } from "ente-media/file-metadata";import React from "react";import type { JourneyPoint } from "../types";@@ -30,17 +30,16 @@ export const processPhotosData = ({for (const file of files) {try {- const lat = file.metadata.latitude;- const lng = file.metadata.longitude;+ const location = fileLocation(file);- if (lat && lng) {+ if (location) {const cachedLocation = locationDataRef.current.get(file.id);const finalName = cachedLocation?.name || fileFileName(file);const finalCountry = cachedLocation?.country || "Unknown";photoData.push({- lat: lat,- lng: lng,+ lat: location.latitude,+ lng: location.longitude,name: finalName,country: finalCountry,timestamp: new Date(