From 52182b15bbe5983121fa6868c1ed22f678266920 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 17 Jun 2025 18:46:51 -0700 Subject: [PATCH] More accurate radius --- lib/geolocation_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/geolocation_service.dart b/lib/geolocation_service.dart index 313c4d1..3714c8c 100644 --- a/lib/geolocation_service.dart +++ b/lib/geolocation_service.dart @@ -90,7 +90,7 @@ class GeolocationService { } static double _distance(Location from, bg.Location to) { - const earthRadius = 6371000; // meters + const earthRadius = 6371008.8; // meters final dLat = _degToRad(to.coords.latitude - from.latitude); final dLon = _degToRad(to.coords.longitude - from.longitude); final a = sin(dLat / 2) * sin(dLat / 2) +