Created seperate PathNode class for Json Serialization

This commit is contained in:
2023-04-06 14:27:25 +02:00
parent 72b5511c26
commit 8813023cd6
4 changed files with 44 additions and 13 deletions

View File

@ -12,8 +12,8 @@ public class OsmNode
public Coordinates coordinates { get; }
[JsonIgnore][NonSerialized]public OsmNode? previousPathNode = null;
[JsonInclude][NonSerialized]public double currentPathWeight = double.MaxValue;
[JsonInclude][NonSerialized]public double currentPathLength = double.MaxValue;
[JsonIgnore][NonSerialized]public double currentPathWeight = double.MaxValue;
[JsonIgnore][NonSerialized]public double currentPathLength = double.MaxValue;
[JsonIgnore][NonSerialized]public double directDistanceToGoal = double.MaxValue;
[OnDeserialized]