OSMServer/Pathfinding/PathNode.cs

22 lines
448 B
C#

using OSMDatastructure;
namespace Pathfinding;
public class PathNode : Node
{
public PathNode? previousPathNode = null;
public double currentPathWeight = double.MaxValue;
public double DirectDistanceToGoal = double.MaxValue;
public PathNode(float lat, float lon) : base(lat, lon)
{
}
public static PathNode FromNode(Node node)
{
return new PathNode(node.lat, node.lon);
}
}