π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Filter out (0, 0) coordinates as invalid location data
Anand Baburajan59120e6f2611
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsxindex 7086ffe8ee..5186b30036 100644--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx@@ -761,7 +761,6 @@ function extractLocationPoints(files: EnteFile[]): JourneyPoint[] {for (const file of files) {const loc = fileLocation(file);if (!loc) continue;- if (loc.latitude === 0 && loc.longitude === 0) continue; // Ignore invalid default coordinatespoints.push({lat: loc.latitude,diff --git a/web/packages/media/file-metadata.ts b/web/packages/media/file-metadata.tsindex 6990a51a27..8928701dd2 100644--- a/web/packages/media/file-metadata.ts+++ b/web/packages/media/file-metadata.ts@@ -505,6 +505,8 @@ export const fileLocation = (file: EnteFile): Location | undefined => {if (latitude === undefined || longitude === undefined) return undefined;if (Number.isNaN(latitude) || Number.isNaN(longitude)) return undefined;+ // (0, 0) is in the Atlantic Ocean and indicates missing/default coordinates.+ if (latitude === 0 && longitude === 0) return undefined;return { latitude, longitude };};