aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/GeocoderHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-24 10:45:26 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-24 10:45:26 -0800
commit98993ee219b6c0cb31f2f3b1608d378b2e028535 (patch)
tree77a6e8366c27b8b3851e52b6ab81ff62920b970c /src/org/traccar/GeocoderHandler.java
parenta129cfd3159c02b4f3996dbdfb5299ac95a6720c (diff)
downloadtrackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.tar.gz
trackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.tar.bz2
trackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.zip
Refactor geolocation
Diffstat (limited to 'src/org/traccar/GeocoderHandler.java')
-rw-r--r--src/org/traccar/GeocoderHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/GeocoderHandler.java b/src/org/traccar/GeocoderHandler.java
index 72f164948..4154e287c 100644
--- a/src/org/traccar/GeocoderHandler.java
+++ b/src/org/traccar/GeocoderHandler.java
@@ -20,6 +20,7 @@ import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.traccar.database.StatisticsManager;
import org.traccar.geocoder.Geocoder;
import org.traccar.model.Position;
@@ -54,7 +55,7 @@ public class GeocoderHandler extends ChannelInboundHandlerAdapter {
}
}
- Context.getStatisticsManager().registerGeocoderRequest();
+ Main.getInjector().getInstance(StatisticsManager.class).registerGeocoderRequest();
geocoder.getAddress(position.getLatitude(), position.getLongitude(),
new Geocoder.ReverseGeocoderCallback() {