aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-07 14:55:48 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-07 14:55:48 -0700
commit3d793f502e1d48eb9c1dd60005ccf6c8682d73ca (patch)
treebafbf8b4e4e1013bdfcce42ba1fc643624031612 /src/main/java/org/traccar/MainModule.java
parent9a285e59e580994dc9c3f80935f766f3dafdcd46 (diff)
downloadtrackermap-server-3d793f502e1d48eb9c1dd60005ccf6c8682d73ca.tar.gz
trackermap-server-3d793f502e1d48eb9c1dd60005ccf6c8682d73ca.tar.bz2
trackermap-server-3d793f502e1d48eb9c1dd60005ccf6c8682d73ca.zip
Add Open Location Code geocoder
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r--src/main/java/org/traccar/MainModule.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java
index 791d61c61..d1d3d4663 100644
--- a/src/main/java/org/traccar/MainModule.java
+++ b/src/main/java/org/traccar/MainModule.java
@@ -66,7 +66,7 @@ import org.traccar.geocoder.MapmyIndiaGeocoder;
import org.traccar.geocoder.NominatimGeocoder;
import org.traccar.geocoder.OpenCageGeocoder;
import org.traccar.geocoder.PositionStackGeocoder;
-import org.traccar.geocoder.TestGeocoder;
+import org.traccar.geocoder.PlusCodesGeocoder;
import org.traccar.geocoder.TomTomGeocoder;
import org.traccar.geolocation.GeolocationProvider;
import org.traccar.geolocation.GoogleGeolocationProvider;
@@ -211,8 +211,8 @@ public class MainModule extends AbstractModule {
int cacheSize = config.getInteger(Keys.GEOCODER_CACHE_SIZE);
Geocoder geocoder;
switch (type) {
- case "test":
- geocoder = new TestGeocoder();
+ case "pluscodes":
+ geocoder = new PlusCodesGeocoder();
break;
case "nominatim":
geocoder = new NominatimGeocoder(client, url, key, language, cacheSize, addressFormat);