diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-19 11:03:34 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-19 11:03:34 +1300 |
commit | 69270993f48c3ecb5d7b00e386fd67722448e8b5 (patch) | |
tree | 323f95805830bf58b402b03ac2fb3f28e7eb12aa /src/org/traccar/LocationProviderHandler.java | |
parent | ff731f55ca109872dc7a73ff8cf87adef9787ea0 (diff) | |
download | trackermap-server-69270993f48c3ecb5d7b00e386fd67722448e8b5.tar.gz trackermap-server-69270993f48c3ecb5d7b00e386fd67722448e8b5.tar.bz2 trackermap-server-69270993f48c3ecb5d7b00e386fd67722448e8b5.zip |
Add approximate location filtering
Diffstat (limited to 'src/org/traccar/LocationProviderHandler.java')
-rw-r--r-- | src/org/traccar/LocationProviderHandler.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/LocationProviderHandler.java b/src/org/traccar/LocationProviderHandler.java index c0b610571..62d5f1d04 100644 --- a/src/org/traccar/LocationProviderHandler.java +++ b/src/org/traccar/LocationProviderHandler.java @@ -48,6 +48,7 @@ public class LocationProviderHandler implements ChannelUpstreamHandler { @Override public void onSuccess(double latitude, double longitude) { position.set(Event.KEY_APPROXIMATE, true); + position.setValid(true); position.setFixTime(position.getDeviceTime()); position.setLatitude(latitude); position.setLongitude(longitude); |