OSMServer/Pathfinding/PathNode.cs

22 lines
448 B
C#
Raw Normal View History

2023-02-03 23:44:15 +01:00
using OSMDatastructure;
2023-02-03 23:36:43 +01:00
namespace Pathfinding;
2023-02-05 20:44:57 +01:00
public class PathNode : Node
2023-02-03 23:36:43 +01:00
{
2023-02-05 20:03:47 +01:00
public PathNode? previousPathNode = null;
public double currentPathWeight = double.MaxValue;
public double DirectDistanceToGoal = double.MaxValue;
2023-02-03 23:44:15 +01:00
2023-02-03 23:36:43 +01:00
public PathNode(float lat, float lon) : base(lat, lon)
{
}
2023-02-03 23:44:15 +01:00
2023-02-05 20:44:57 +01:00
public static PathNode FromNode(Node node)
{
return new PathNode(node.lat, node.lon);
}
2023-02-03 23:36:43 +01:00
}