diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-01-29 11:06:20 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-29 11:06:20 +1300 |
commit | 72612c6f02dc4d72cfbb95ccd54018ff77920a89 (patch) | |
tree | b512e4e8e96c732496f489e618235366a7cbe92a /src | |
parent | 6608d73a10cf49b19e57dd0bf87018055e51adfb (diff) | |
parent | 2c44646f6b574d399dd2d36afa2e88963c7322af (diff) | |
download | trackermap-server-72612c6f02dc4d72cfbb95ccd54018ff77920a89.tar.gz trackermap-server-72612c6f02dc4d72cfbb95ccd54018ff77920a89.tar.bz2 trackermap-server-72612c6f02dc4d72cfbb95ccd54018ff77920a89.zip |
Merge pull request #2849 from ValeraVi/fix-geoloc-pos
Reset additional parameters of GPS position after geolocation
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/GeolocationHandler.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/GeolocationHandler.java b/src/org/traccar/GeolocationHandler.java index 669c31654..31fed5dbd 100644 --- a/src/org/traccar/GeolocationHandler.java +++ b/src/org/traccar/GeolocationHandler.java @@ -57,6 +57,10 @@ public class GeolocationHandler implements ChannelUpstreamHandler { position.setLatitude(latitude); position.setLongitude(longitude); position.setAccuracy(accuracy); + position.setAltitude(0); + position.setSpeed(0); + position.setCourse(0); + position.set(Position.KEY_RSSI, 0); Channels.fireMessageReceived(ctx, position, event.getRemoteAddress()); } |