aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/traccar/Context.java12
-rw-r--r--src/org/traccar/geocode/FactualReverseGeocoder.java4
2 files changed, 7 insertions, 9 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 340167286..b3880eaf8 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -117,12 +117,6 @@ public class Context {
int cacheSize = config.getInteger("geocoder.cacheSize");
switch (type) {
- case "bingmaps":
- reverseGeocoder = new BingMapsReverseGeocoder(url, key, cacheSize);
- break;
- case "factual":
- reverseGeocoder = new FactualReverseGeocoder(url, key, cacheSize);
- break;
case "google":
reverseGeocoder = new GoogleReverseGeocoder(cacheSize);
break;
@@ -138,6 +132,12 @@ public class Context {
case "opencage":
reverseGeocoder = new OpenCageReverseGeocoder(url, key, cacheSize);
break;
+ case "bingmaps":
+ reverseGeocoder = new BingMapsReverseGeocoder(url, key, cacheSize);
+ break;
+ case "factual":
+ reverseGeocoder = new FactualReverseGeocoder(url, key, cacheSize);
+ break;
}
}
diff --git a/src/org/traccar/geocode/FactualReverseGeocoder.java b/src/org/traccar/geocode/FactualReverseGeocoder.java
index ce4523c69..9100301bb 100644
--- a/src/org/traccar/geocode/FactualReverseGeocoder.java
+++ b/src/org/traccar/geocode/FactualReverseGeocoder.java
@@ -15,9 +15,7 @@
*/
package org.traccar.geocode;
-import javax.json.JsonArray;
import javax.json.JsonObject;
-import org.traccar.helper.Log;
public class FactualReverseGeocoder extends JsonReverseGeocoder {
@@ -32,7 +30,6 @@ public class FactualReverseGeocoder extends JsonReverseGeocoder {
@Override
protected Address parseAddress(JsonObject json) {
JsonObject result = json.getJsonObject("response").getJsonObject("data");
- JsonObject dummy;
if (result != null) {
Address address = new Address();
if (result.getJsonObject("street_number") != null) {
@@ -60,4 +57,5 @@ public class FactualReverseGeocoder extends JsonReverseGeocoder {
}
return null;
}
+
}