aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocode
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-09 13:07:02 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-07-09 13:07:02 +1200
commit70d22de4205aec294660378f0d854cbc32c7a6b8 (patch)
treeb425bcf00113b3d8bb65ba160a7723f66e12a977 /src/org/traccar/geocode
parent32c836e90bd75e68cac1d704b048a3c4ff22775f (diff)
downloadtrackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.tar.gz
trackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.tar.bz2
trackermap-server-70d22de4205aec294660378f0d854cbc32c7a6b8.zip
Fix code analytics issues
Diffstat (limited to 'src/org/traccar/geocode')
-rw-r--r--src/org/traccar/geocode/GeocodeFarmReverseGeocoder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/geocode/GeocodeFarmReverseGeocoder.java b/src/org/traccar/geocode/GeocodeFarmReverseGeocoder.java
index e100d3081..306fc25b8 100644
--- a/src/org/traccar/geocode/GeocodeFarmReverseGeocoder.java
+++ b/src/org/traccar/geocode/GeocodeFarmReverseGeocoder.java
@@ -19,12 +19,14 @@ import javax.json.JsonObject;
public class GeocodeFarmReverseGeocoder extends JsonReverseGeocoder {
+ private static final String URL = "https://www.geocode.farm/v3/json/reverse/";
+
public GeocodeFarmReverseGeocoder(int cacheSize) {
- super("https://www.geocode.farm/v3/json/reverse/?lat=%f&lon=%f&country=us&lang=en&count=1", cacheSize);
+ super(URL + "?lat=%f&lon=%f&country=us&lang=en&count=1", cacheSize);
}
public GeocodeFarmReverseGeocoder(String key, int cacheSize) {
- super("https://www.geocode.farm/v3/json/reverse/?lat=%f&lon=%f&country=us&lang=en&count=1&key=" + key, cacheSize);
+ super(URL + "?lat=%f&lon=%f&country=us&lang=en&count=1&key=" + key, cacheSize);
}
@Override