diff --git a/Pathfinding/PathNode.cs b/Pathfinding/PathNode.cs index 8899125..8e84617 100644 --- a/Pathfinding/PathNode.cs +++ b/Pathfinding/PathNode.cs @@ -2,7 +2,7 @@ using OSMDatastructure; namespace Pathfinding; -public class PathNode : OSMDatastructure.Node +public class PathNode : Node { public PathNode? previousPathNode = null; public double currentPathWeight = double.MaxValue; @@ -14,4 +14,9 @@ public class PathNode : OSMDatastructure.Node } + public static PathNode FromNode(Node node) + { + return new PathNode(node.lat, node.lon); + } + } \ No newline at end of file