diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-29 16:12:19 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-29 16:12:57 +1200 |
commit | 6c82282da3b35b2acf46f69655cd0d097058af24 (patch) | |
tree | a8c802590896ed7c49e374167a8a7212ef6bb06b /src/org/traccar/GeolocationHandler.java | |
parent | 4f235bcac5b13733684fed8e0ef05968123f6e10 (diff) | |
download | trackermap-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.java | 4 |
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 |