diff --git a/astar/Astar.cs b/astar/Astar.cs index 739e9fe..d1cec7f 100644 --- a/astar/Astar.cs +++ b/astar/Astar.cs @@ -30,7 +30,7 @@ namespace astar endNode.Value.Metric = 0f; double totalDistance = NodeUtils.DistanceBetween(startNode.Value, endNode.Value); - PriorityHelper priorityHelper = new(totalDistance, SpeedHelper.GetMaxSpeed(car)); + PriorityHelper priorityHelper = new(totalDistance, SpeedHelper.GetTheoreticalMaxSpeed(car)); logger?.Log(LogLevel.Information, "From {0:00.00000}#{1:000.00000} to {2:00.00000}#{3:000.00000} Great-Circle {4:00000.00}km", diff --git a/astar/PathingHelper/SpeedHelper.cs b/astar/PathingHelper/SpeedHelper.cs index 761f0d5..b619837 100644 --- a/astar/PathingHelper/SpeedHelper.cs +++ b/astar/PathingHelper/SpeedHelper.cs @@ -13,7 +13,7 @@ internal static class SpeedHelper return car ? SpeedCar[highwayType] : SpeedPedestrian[highwayType]; } - public static byte GetMaxSpeed(bool car = true) + public static byte GetTheoreticalMaxSpeed(bool car = true) { return car ? SpeedCar.MaxBy(s => s.Value).Value : SpeedPedestrian.MaxBy(s => s.Value).Value; }