aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-31 18:11:05 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-31 18:11:05 -0800
commit2dd9cf55d1503aa4a35fd0b57126435e4036a9ff (patch)
treee4a5b6d280be49d9fd06cba73c9cb84f3dab1830 /src/main/java/org/traccar/MainModule.java
parentb332952f24a8b162b61024622771fb1dab41f9a3 (diff)
downloadtrackermap-server-2dd9cf55d1503aa4a35fd0b57126435e4036a9ff.tar.gz
trackermap-server-2dd9cf55d1503aa4a35fd0b57126435e4036a9ff.tar.bz2
trackermap-server-2dd9cf55d1503aa4a35fd0b57126435e4036a9ff.zip
Add Geoapify geocoder
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r--src/main/java/org/traccar/MainModule.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java
index 11100f66e..aaa82adfc 100644
--- a/src/main/java/org/traccar/MainModule.java
+++ b/src/main/java/org/traccar/MainModule.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 - 2021 Anton Tananaev (anton@traccar.org)
+ * Copyright 2018 - 2022 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.
@@ -34,6 +34,7 @@ import org.traccar.geocoder.AddressFormat;
import org.traccar.geocoder.BanGeocoder;
import org.traccar.geocoder.BingMapsGeocoder;
import org.traccar.geocoder.FactualGeocoder;
+import org.traccar.geocoder.GeoapifyGeocoder;
import org.traccar.geocoder.GeocodeFarmGeocoder;
import org.traccar.geocoder.GeocodeXyzGeocoder;
import org.traccar.geocoder.Geocoder;
@@ -197,6 +198,8 @@ public class MainModule extends AbstractModule {
return new MapboxGeocoder(key, cacheSize, addressFormat);
case "maptiler":
return new MapTilerGeocoder(key, cacheSize, addressFormat);
+ case "geoapify":
+ return new GeoapifyGeocoder(key, language, cacheSize, addressFormat);
default:
return new GoogleGeocoder(key, language, cacheSize, addressFormat);
}