Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Increase trip layout clustering distance from 10km to 25km to reduce duplicate location names

anandbaburajan809671879c85
diff --git a/web/apps/photos/src/components/TripLayout/mapHelpers.ts b/web/apps/photos/src/components/TripLayout/mapHelpers.ts
index dd543d229e..0c3b1e5b2b 100644
--- a/web/apps/photos/src/components/TripLayout/mapHelpers.ts
+++ b/web/apps/photos/src/components/TripLayout/mapHelpers.ts
@@ -42,8 +42,8 @@ export const calculateDistance = (
export const clusterPhotosByProximity = (photos: JourneyPoint[]) => {
if (photos.length === 0) return [];
- // 10km clustering distance (roughly 0.1 degrees)
- const distanceThreshold = 0.1; // About 10km in degrees
+ // 25km clustering distance (roughly 0.25 degrees)
+ const distanceThreshold = 0.25; // About 25km in degrees
// First, group photos by day
const photosByDay = new Map<string, JourneyPoint[]>();