]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - src/tim/prune/load/json/JsonPoint.java
Version 20.4, May 2021
[GpsPrune.git] / src / tim / prune / load / json / JsonPoint.java
diff --git a/src/tim/prune/load/json/JsonPoint.java b/src/tim/prune/load/json/JsonPoint.java
new file mode 100644 (file)
index 0000000..a02bb15
--- /dev/null
@@ -0,0 +1,25 @@
+package tim.prune.load.json;
+
+/**
+ * Structure for holding a single point extracted from the Json
+ */
+public class JsonPoint
+{
+       public String _latitude = null, _longitude = null, _altitude = null;
+       public boolean _newSegment = false;
+
+       /**
+        * Constructor
+        * @param inLat latitude string
+        * @param inLon longitude string
+        * @param inAlt altitude string
+        * @param inNewSegment true if this point starts a new segment
+        */
+       public JsonPoint(String inLat, String inLon, String inAlt, boolean inNewSegment)
+       {
+               _latitude = inLat;
+               _longitude = inLon;
+               _altitude = inAlt;
+               _newSegment = inNewSegment;
+       }
+}