diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-25 21:13:28 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-25 21:13:28 -0700 |
commit | 03a5a0c17cb03a558011c8e817f023d0030ac6ab (patch) | |
tree | 068aae81f27532c6d0abbf35cf9d21ad497b0820 /src/main/java/org/traccar/geocoder | |
parent | 4628a7231116a612dff02d38ba5275f642979207 (diff) | |
download | trackermap-server-03a5a0c17cb03a558011c8e817f023d0030ac6ab.tar.gz trackermap-server-03a5a0c17cb03a558011c8e817f023d0030ac6ab.tar.bz2 trackermap-server-03a5a0c17cb03a558011c8e817f023d0030ac6ab.zip |
Register all geocoding requests
Diffstat (limited to 'src/main/java/org/traccar/geocoder')
-rw-r--r-- | src/main/java/org/traccar/geocoder/JsonGeocoder.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/geocoder/JsonGeocoder.java b/src/main/java/org/traccar/geocoder/JsonGeocoder.java index 8c442def3..4f34fb973 100644 --- a/src/main/java/org/traccar/geocoder/JsonGeocoder.java +++ b/src/main/java/org/traccar/geocoder/JsonGeocoder.java @@ -18,6 +18,8 @@ package org.traccar.geocoder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.traccar.Context; +import org.traccar.Main; +import org.traccar.database.StatisticsManager; import javax.json.JsonObject; import javax.ws.rs.ClientErrorException; @@ -95,6 +97,8 @@ public abstract class JsonGeocoder implements Geocoder { } } + Main.getInjector().getInstance(StatisticsManager.class).registerGeocoderRequest(); + Invocation.Builder request = Context.getClient().target(String.format(url, latitude, longitude)).request(); if (callback != null) { |