From cc072e1a70a2fd6c527b6ee87a5d4134ad4df60b Mon Sep 17 00:00:00 2001 From: cqc Date: Sun, 4 Jan 2026 11:22:05 +0100 Subject: [PATCH] bearing3 --- minimap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minimap.py b/minimap.py index 92a8e4a..571c4b4 100644 --- a/minimap.py +++ b/minimap.py @@ -85,7 +85,7 @@ def haver_dist(coord1, coord2): dlati = lati2 - lati1 a = ( math.sin(dlati / 2) ** 2 - + math.cos(lati1) * math.cos(lati2) * math.sin(dlon / 2) ** 2 + + math.cos(lati1) * math.cos(lati2) * math.sin(dlong / 2) ** 2 ) c = 2 * math.atan2(math.sqrt(a), math.sqrt(1 - a)) distance = R * c