aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index a180a64ab..ca45a34d6 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -17,6 +17,7 @@ package org.traccar;
import org.traccar.database.DataCache;
import org.traccar.database.DataManager;
+import org.traccar.geocode.GisgraphyReverseGeocoder;
import org.traccar.geocode.GoogleReverseGeocoder;
import org.traccar.geocode.NominatimReverseGeocoder;
import org.traccar.geocode.ReverseGeocoder;
@@ -97,6 +98,8 @@ public class Context {
String type = properties.getProperty("geocoder.type");
if (type != null && type.equals("nominatim")) {
reverseGeocoder = new NominatimReverseGeocoder(properties.getProperty("geocoder.url"));
+ } if (type != null && type.equals("gisgraphy")) {
+ reverseGeocoder = new GisgraphyReverseGeocoder(properties.getProperty("geocoder.url"));
} else {
reverseGeocoder = new GoogleReverseGeocoder();
}