aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2024-06-17 17:13:36 -0700
committerGitHub <noreply@github.com>2024-06-17 17:13:36 -0700
commit195512f41776f663665b9bcc733affc5b19fa52a (patch)
treee623c42ab3ab1416131aa6adebb47a59b0b2a50f /src/main/java/org/traccar/MainModule.java
parentbc65eb120807b7c899d3fd95fbb6684934bfa3ef (diff)
parenta12690a6acffb356cc90791159c1cb60161bf1af (diff)
downloadtrackermap-server-195512f41776f663665b9bcc733affc5b19fa52a.tar.gz
trackermap-server-195512f41776f663665b9bcc733affc5b19fa52a.tar.bz2
trackermap-server-195512f41776f663665b9bcc733affc5b19fa52a.zip
Merge pull request #5347 from jinzo/photon-geocoder
Photon Geocoder
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r--src/main/java/org/traccar/MainModule.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java
index 66238ab44..806e6da18 100644
--- a/src/main/java/org/traccar/MainModule.java
+++ b/src/main/java/org/traccar/MainModule.java
@@ -68,6 +68,7 @@ import org.traccar.geocoder.OpenCageGeocoder;
import org.traccar.geocoder.PositionStackGeocoder;
import org.traccar.geocoder.PlusCodesGeocoder;
import org.traccar.geocoder.TomTomGeocoder;
+import org.traccar.geocoder.GeocodeJsonGeocoder;
import org.traccar.geolocation.GeolocationProvider;
import org.traccar.geolocation.GoogleGeolocationProvider;
import org.traccar.geolocation.OpenCellIdGeolocationProvider;
@@ -261,6 +262,9 @@ public class MainModule extends AbstractModule {
case "geoapify":
geocoder = new GeoapifyGeocoder(client, key, language, cacheSize, addressFormat);
break;
+ case "geocodejson":
+ geocoder = new GeocodeJsonGeocoder(client, url, key, language, cacheSize, addressFormat);
+ break;
default:
geocoder = new GoogleGeocoder(client, key, language, cacheSize, addressFormat);
break;