aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/LocationProviderHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-19 11:03:34 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-19 11:03:34 +1300
commit69270993f48c3ecb5d7b00e386fd67722448e8b5 (patch)
tree323f95805830bf58b402b03ac2fb3f28e7eb12aa /src/org/traccar/LocationProviderHandler.java
parentff731f55ca109872dc7a73ff8cf87adef9787ea0 (diff)
downloadtrackermap-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.java1
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);