From 3e23635cd159c8553b6c2a9e50e6b1b4e2fc8ce6 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 6 Apr 2023 02:22:03 +0200 Subject: [PATCH] Serialize Path for API --- OSMDatastructure/OsmNode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]