diff --git a/API/Program.cs b/API/Program.cs index f74b88e..19ff529 100644 --- a/API/Program.cs +++ b/API/Program.cs @@ -57,8 +57,8 @@ app.Run(); internal class PathResult { [JsonInclude]public TimeSpan calcTime; - [JsonInclude] public double pathWeight = double.PositiveInfinity; - [JsonInclude] public double pathTravelDistance = double.PositiveInfinity; + [JsonInclude] public double pathWeight = double.MaxValue; + [JsonInclude] public double pathTravelDistance = double.MaxValue; [JsonInclude]public List pathNodes; public PathResult(TimeSpan calcTime, List pathNodes)