diff options
Diffstat (limited to 'src/cgeo/geocaching/cgCoord.java')
| -rw-r--r-- | src/cgeo/geocaching/cgCoord.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/cgeo/geocaching/cgCoord.java b/src/cgeo/geocaching/cgCoord.java new file mode 100644 index 0000000..4e7d3b2 --- /dev/null +++ b/src/cgeo/geocaching/cgCoord.java @@ -0,0 +1,46 @@ +package cgeo.geocaching; + +public class cgCoord { + + public Integer id = null; + public String geocode = ""; + public String type = "cache"; + public String typeSpec = "traditional"; + public String name = ""; + public boolean found = false; + public boolean disabled = false; + public Double latitude = new Double(0); + public Double longitude = new Double(0); + public Float difficulty = null; + public Float terrain = null; + public String size = null; + + public cgCoord() { + } + + public cgCoord(cgCache cache) { + disabled = cache.disabled; + found = cache.found; + geocode = cache.geocode; + latitude = cache.latitude; + longitude = cache.longitude; + name = cache.name; + type = "cache"; + typeSpec = cache.type; + difficulty = cache.difficulty; + terrain = cache.terrain; + size = cache.size; + } + + public cgCoord(cgWaypoint waypoint) { + id = waypoint.id; + disabled = false; + found = false; + geocode = ""; + latitude = waypoint.latitude; + longitude = waypoint.longitude; + name = waypoint.name; + type = "waypoint"; + typeSpec = waypoint.type; + } +} |
