aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-05-07 15:39:42 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-05-07 15:39:42 +1200
commit953852e6e984f8a639cf1a5ac4116fff755d538a (patch)
tree1902beb226bfa2ba7b60b20a310b376e8e86ce76 /src/org/traccar/Context.java
parent6a07fc479021dbf61143d432285c573faf38d6b9 (diff)
downloadtrackermap-server-953852e6e984f8a639cf1a5ac4116fff755d538a.tar.gz
trackermap-server-953852e6e984f8a639cf1a5ac4116fff755d538a.tar.bz2
trackermap-server-953852e6e984f8a639cf1a5ac4116fff755d538a.zip
Add Gisgraphy reverse geocoder
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();
}