aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-06 23:33:12 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-06 23:33:12 +1200
commitf119326f307635dddc6306d4f5a4e349e808b48a (patch)
tree3c04943e57947b10ac08e4772ac17e38b66611f0 /src/org/traccar/database
parent80e166430b79df771abc73e55892dc9f5fd0b2f1 (diff)
downloadtrackermap-server-f119326f307635dddc6306d4f5a4e349e808b48a.tar.gz
trackermap-server-f119326f307635dddc6306d4f5a4e349e808b48a.tar.bz2
trackermap-server-f119326f307635dddc6306d4f5a4e349e808b48a.zip
Display markers on the map
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/DataManager.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 2aca1ff87..3a34be2d7 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -187,8 +187,9 @@ public class DataManager {
private NamedParameterStatement.Params assignVariables(NamedParameterStatement.Params params, Position position) throws SQLException {
params.setString("protocol", position.getProtocol());
- params.setLong("device_id", position.getDeviceId());
- params.setTimestamp("time", position.getFixTime());
+ params.setLong("deviceId", position.getDeviceId());
+ params.setTimestamp("deviceTime", position.getDeviceTime());
+ params.setTimestamp("fixTime", position.getFixTime());
params.setBoolean("valid", position.getValid());
params.setDouble("altitude", position.getAltitude());
params.setDouble("latitude", position.getLatitude());
@@ -196,8 +197,13 @@ public class DataManager {
params.setDouble("speed", position.getSpeed());
params.setDouble("course", position.getCourse());
params.setString("address", position.getAddress());
+ params.setString("other", position.getOther());
+
+ // temporary
+ params.setTimestamp("time", position.getFixTime());
+ params.setLong("device_id", position.getDeviceId());
+ params.setLong("power", null);
params.setString("extended_info", position.getOther());
- params.setLong("power", null); // temporary
return params;
}