aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web/shared
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-01-02 23:55:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-01-02 23:55:50 +1300
commita7c6a5f03c0ac94603b5238c59a275a239d16b73 (patch)
tree02460edcd1e7fb0101d46ef4e690eb3cbd7cc71d /src/main/java/org/traccar/web/shared
parent7032c42fb017582f1343128466b8df51c155f78d (diff)
downloadetbsa-traccar-web-a7c6a5f03c0ac94603b5238c59a275a239d16b73.tar.gz
etbsa-traccar-web-a7c6a5f03c0ac94603b5238c59a275a239d16b73.tar.bz2
etbsa-traccar-web-a7c6a5f03c0ac94603b5238c59a275a239d16b73.zip
Added markers to map panel
Diffstat (limited to 'src/main/java/org/traccar/web/shared')
-rw-r--r--src/main/java/org/traccar/web/shared/model/Position.java62
1 files changed, 53 insertions, 9 deletions
diff --git a/src/main/java/org/traccar/web/shared/model/Position.java b/src/main/java/org/traccar/web/shared/model/Position.java
index 5a918cf..69181df 100644
--- a/src/main/java/org/traccar/web/shared/model/Position.java
+++ b/src/main/java/org/traccar/web/shared/model/Position.java
@@ -28,10 +28,6 @@ public class Position implements Serializable {
@Index(name = "positionsIndex")
private Device device;
- public void setDevice(Device device) {
- this.device = device;
- }
-
public Device getDevice() {
return device;
}
@@ -39,14 +35,62 @@ public class Position implements Serializable {
@Index(name = "positionsIndex")
private Date time;
- public void setTime(Date time) {
- this.time = time;
- }
-
public Date getTime() {
return time;
}
- // TODO: other
+ private boolean valid;
+
+ public boolean getValid() {
+ return valid;
+ }
+
+ private double latitude;
+
+ public double getLatitude() {
+ return latitude;
+ }
+
+ private double longitude;
+
+ public double getLongitude() {
+ return longitude;
+ }
+
+ private double altitude;
+
+ public double getAltitude() {
+ return altitude;
+ }
+
+ private double speed;
+
+ public double getSpeed() {
+ return speed;
+ }
+
+ private double course;
+
+ public double getCourse() {
+ return course;
+ }
+
+ private double power;
+
+ public double getPower() {
+ return power;
+ }
+
+ private String address;
+
+ public String getAddress() {
+ return address;
+ }
+
+ private String other;
+
+ public String getOther() {
+ return other;
+ }
}