This repository has been archived on 2025-01-15. You can view files and clone it, but cannot push or open issues or pull requests.
Files
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);
}
}