diff --git a/API/Program.cs b/API/Program.cs index 7f14900..0356d22 100644 --- a/API/Program.cs +++ b/API/Program.cs @@ -68,7 +68,7 @@ internal class PathResult if (pathNodes.Count > 0) { this.pathWeight = pathNodes.Last().currentPathWeight; - this.pathTravelDistance = pathNodes.Last().currentPathLength; + this.pathTravelDistance = pathNodes.First().currentPathLength; } } } \ No newline at end of file