This commit is contained in:
cqc
2026-01-04 11:22:05 +01:00
parent d5f61cb64d
commit cc072e1a70

View File

@ -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