aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/cgCoord.java
blob: b699d27e586f745c4b18ccd1949bb4fc9b51031a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 = Double.valueOf(0);
	public Double longitude = Double.valueOf(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;
	}
}