From fcae3e5be2be156f2fa1415ace42579c928998e7 Mon Sep 17 00:00:00 2001 From: C9Glax <13404778+C9Glax@users.noreply.github.com> Date: Thu, 3 Nov 2022 19:13:53 +0100 Subject: [PATCH] Changed Distance to meters --- Graph/Utils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Graph/Utils.cs b/Graph/Utils.cs index 550ed10..30f60ea 100644 --- a/Graph/Utils.cs +++ b/Graph/Utils.cs @@ -9,7 +9,7 @@ public static float DistanceBetweenCoordinates(float lat1, float lon1, float lat2, float lon2) { - const int earthRadius = 6371; + const int earthRadius = 6371000; double differenceLat = DegreesToRadians(lat2 - lat1); double differenceLon = DegreesToRadians(lon2 - lon1);