From 5f023a2b40e99580a7c8455391659cae087fe999 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Fri, 9 Feb 2024 21:27:04 +0100 Subject: [PATCH] metadata/gps: City detection from 100 to 15 km The original idea was that it's helpful to at least know the very rough location of an image. In practice that mostly seems to be confusing. So reducing this to a much smaller distance. Closes #318 Part-of: --- src/metadata/gps.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/metadata/gps.rs b/src/metadata/gps.rs index a5d779b..53fd17a 100644 --- a/src/metadata/gps.rs +++ b/src/metadata/gps.rs @@ -145,8 +145,8 @@ impl GPSLocation { self.longitude.to_f64(), ); - // do not use city if more than 100 km away - if location.distance(&location_exact) < 100. { + // do not use city if more than 15 km away + if location.distance(&location_exact) < 15. { if let (Some(city), Some(country)) = (location.city_name(), location.country_name()) { return format!("{city}, {country}");