Subversion Repositories Projects

Rev

Rev 1565 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1565 Rev 1568
Line 43... Line 43...
43
        public void setStatus(int status) {
43
        public void setStatus(int status) {
44
                this.status = status;
44
                this.status = status;
45
        }
45
        }
Line 46... Line 46...
46
 
46
 
47
        public String toXML() {
-
 
48
                double latitude = Math.abs(this.latitude);
47
        public String toXML() {
49
                String result = "latitude=\"" + latitude;
-
 
50
                if (this.latitude < 0)
-
 
51
                        result += "S";
-
 
52
                else
-
 
53
                        result += "N";
-
 
54
                result += "\"";
-
 
55
                double longitude = Math.abs(this.longitude);
48
                String result = "latitude=\"" + latitude + "\"";
56
                result += " longitude=\"" + longitude;
-
 
57
                if (this.longitude < 0)
-
 
58
                        result += "W";
-
 
59
                else
-
 
60
                        result += "E";
49
                result += " longitude=\"" + longitude + "\"";
61
                result += "\"";
50
                result += " altitude=\"" + altitude + "\"";
62
                return result;
51
                return result;
Line 63... Line 52...
63
        }
52
        }
64
 
-
 
65
        public String toString() {
53
 
66
                double latitude = Math.abs(this.latitude);
-
 
67
                String result = "" + latitude;
-
 
68
                if (this.latitude < 0)
-
 
69
                        result += "S";
-
 
70
                else
-
 
71
                        result += "N";
-
 
72
                result += " ";
54
        public String toString() {
73
                double longitude = Math.abs(this.longitude);
-
 
74
                result += "" + longitude;
-
 
75
                if (this.longitude < 0)
-
 
76
                        result += "W";
55
                String result = "" + latitude;
77
                else
56
                result += "," + longitude;
78
                        result += "E";
57
                result += "," + altitude;
79
                return result;
58
                return result;