X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Fload%2Fjson%2FJsonPoint.java;fp=src%2Ftim%2Fprune%2Fload%2Fjson%2FJsonPoint.java;h=a02bb15bd64c3d5993269d0e5903191dfad885e6;hp=0000000000000000000000000000000000000000;hb=cd5dd0c207b676067e85e0885b90f05445b7e229;hpb=1db53356139320890a8d10e982865a1899e11b81 diff --git a/src/tim/prune/load/json/JsonPoint.java b/src/tim/prune/load/json/JsonPoint.java new file mode 100644 index 0000000..a02bb15 --- /dev/null +++ b/src/tim/prune/load/json/JsonPoint.java @@ -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; + } +}