diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-13 15:58:37 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-13 15:58:37 +1300 |
commit | 6b11a6e00f67664ef622e458832e820bc6f0aed5 (patch) | |
tree | 6e3ec04083711fd33bc81f6a7e25a4c37f5042ce /src | |
parent | 29c8ab33a712e3fee23f21c5e58b2d1ab64010c8 (diff) | |
download | traccar-server-6b11a6e00f67664ef622e458832e820bc6f0aed5.tar.gz traccar-server-6b11a6e00f67664ef622e458832e820bc6f0aed5.tar.bz2 traccar-server-6b11a6e00f67664ef622e458832e820bc6f0aed5.zip |
Decode SPOT message type
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/protocol/SpotProtocolDecoder.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/protocol/SpotProtocolDecoder.java b/src/org/traccar/protocol/SpotProtocolDecoder.java index ed6a03c5f..dc4e272ca 100644 --- a/src/org/traccar/protocol/SpotProtocolDecoder.java +++ b/src/org/traccar/protocol/SpotProtocolDecoder.java @@ -81,6 +81,8 @@ public class SpotProtocolDecoder extends BaseHttpProtocolDecoder { position.setLatitude(Double.parseDouble(xPath.evaluate("latitude", node))); position.setLongitude(Double.parseDouble(xPath.evaluate("longitude", node))); + position.set(Position.KEY_EVENT, xPath.evaluate("messageType", node)); + positions.add(position); } |