π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web][photos] Clean up geocoding fallbacks and remove unused parameter
anandbaburajan9894beb7f6c2
diff --git a/web/apps/photos/src/components/TripLayout/utils/geocoding.ts b/web/apps/photos/src/components/TripLayout/utils/geocoding.tsindex 5c69226d80..7bfe6f4b4a 100644--- a/web/apps/photos/src/components/TripLayout/utils/geocoding.ts+++ b/web/apps/photos/src/components/TripLayout/utils/geocoding.ts@@ -51,7 +51,6 @@ export const throttle = <T extends (...args: unknown[]) => void>(export const getLocationName = async (lat: number,lng: number,- photoIndex?: number,): Promise<{ place: string; country: string }> => {// Round coordinates to 3 decimal places for cache key (~100m precision)const roundedLat = Math.round(lat * 1000) / 1000;@@ -96,9 +95,7 @@ export const getLocationName = async (} else {// Fallback if no location foundresult = {- place: photoIndex- ? `Location ${photoIndex}`- : `Location ${lat.toFixed(2)}, ${lng.toFixed(2)}`,+ place: "Unknown",country: "Unknown",};}@@ -109,7 +106,7 @@ export const getLocationName = async (} catch {// Fallback on errorconst fallbackResult = {- place: photoIndex ? `Location ${photoIndex}` : `Unknown Location`,+ place: "Unknown",country: "Unknown",};// Cache the fallback to avoid repeated failures