diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-30 18:39:19 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 18:39:19 +1300 |
commit | eb1373894ae52054403625ef1261f3399272f5a7 (patch) | |
tree | be55e2eff98307745633b6149ebe4b294e5d1d70 /setup | |
parent | 137adb0507cacb77c7180d06526f5258f857de57 (diff) | |
parent | d5ec75ecd3697e37782c9dd53998c889d5b9ef4d (diff) | |
download | traccar-server-eb1373894ae52054403625ef1261f3399272f5a7.tar.gz traccar-server-eb1373894ae52054403625ef1261f3399272f5a7.tar.bz2 traccar-server-eb1373894ae52054403625ef1261f3399272f5a7.zip |
Merge pull request #2617 from Abyss777/get_single_position
Add API to get positions by Id
Diffstat (limited to 'setup')
-rw-r--r-- | setup/default.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setup/default.xml b/setup/default.xml index 7df352c4d..5c6f8fe90 100644 --- a/setup/default.xml +++ b/setup/default.xml @@ -171,6 +171,10 @@ SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime </entry> + <entry key='database.selectPosition'> + SELECT * FROM positions WHERE id = :id + </entry> + <entry key='database.insertPosition'> INSERT INTO positions (deviceId, protocol, serverTime, deviceTime, fixTime, valid, latitude, longitude, altitude, speed, course, address, attributes) VALUES (:deviceId, :protocol, :now, :deviceTime, :fixTime, :valid, :latitude, :longitude, :altitude, :speed, :course, :address, :attributes) |