aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/Position.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/model/Position.java')
-rw-r--r--src/org/traccar/model/Position.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java
index 0ee79b744..898b0d144 100644
--- a/src/org/traccar/model/Position.java
+++ b/src/org/traccar/model/Position.java
@@ -22,6 +22,30 @@ import java.util.Date;
*/
public class Position extends Data {
+ public Position() {
+ }
+
+ public Position(
+ long deviceId,
+ Date time,
+ boolean valid,
+ double latitude,
+ double longitude,
+ double altitude,
+ double speed,
+ double course) {
+
+ setDeviceId(deviceId);
+ setTime(time);
+ setValid(valid);
+ setLatitude(latitude);
+ setLongitude(longitude);
+ setAltitude(altitude);
+ setSpeed(speed);
+ setCourse(course);
+ }
+
+
/**
* Time (UTC)
*/