diff --git a/OSMDatastructure/OsmNode.cs b/OSMDatastructure/OsmNode.cs index ebf0676..e2d4642 100644 --- a/OSMDatastructure/OsmNode.cs +++ b/OSMDatastructure/OsmNode.cs @@ -12,8 +12,8 @@ public class OsmNode public Coordinates coordinates { get; } [JsonIgnore][NonSerialized]public OsmNode? previousPathNode = null; - [JsonIgnore][NonSerialized]public double currentPathWeight = double.MaxValue; - [JsonIgnore][NonSerialized]public double currentPathLength = double.MaxValue; + [JsonInclude][NonSerialized]public double currentPathWeight = double.MaxValue; + [JsonInclude][NonSerialized]public double currentPathLength = double.MaxValue; [JsonIgnore][NonSerialized]public double directDistanceToGoal = double.MaxValue; [OnDeserialized]