aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/GeolocationHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-29 16:12:19 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-29 16:12:57 +1200
commit6c82282da3b35b2acf46f69655cd0d097058af24 (patch)
treea8c802590896ed7c49e374167a8a7212ef6bb06b /src/org/traccar/GeolocationHandler.java
parent4f235bcac5b13733684fed8e0ef05968123f6e10 (diff)
downloadtrackermap-server-6c82282da3b35b2acf46f69655cd0d097058af24.tar.gz
trackermap-server-6c82282da3b35b2acf46f69655cd0d097058af24.tar.bz2
trackermap-server-6c82282da3b35b2acf46f69655cd0d097058af24.zip
Save more statistics info
Diffstat (limited to 'src/org/traccar/GeolocationHandler.java')
-rw-r--r--src/org/traccar/GeolocationHandler.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/GeolocationHandler.java b/src/org/traccar/GeolocationHandler.java
index 31fed5dbd..346ad5904 100644
--- a/src/org/traccar/GeolocationHandler.java
+++ b/src/org/traccar/GeolocationHandler.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2016 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2017 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,6 +47,8 @@ public class GeolocationHandler implements ChannelUpstreamHandler {
final Position position = (Position) message;
if ((position.getOutdated() || processInvalidPositions && !position.getValid())
&& position.getNetwork() != null) {
+ Context.getStatisticsManager().registerGeolocationRequest();
+
geolocationProvider.getLocation(position.getNetwork(),
new GeolocationProvider.LocationProviderCallback() {
@Override