diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 13:07:02 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 13:07:02 +1200 |
commit | 70d22de4205aec294660378f0d854cbc32c7a6b8 (patch) | |
tree | b425bcf00113b3d8bb65ba160a7723f66e12a977 /src/org/traccar/geocode/GeocodeFarmReverseGeocoder.java | |
parent | 32c836e90bd75e68cac1d704b048a3c4ff22775f (diff) | |
download | traccar-server-70d22de4205aec294660378f0d854cbc32c7a6b8.tar.gz traccar-server-70d22de4205aec294660378f0d854cbc32c7a6b8.tar.bz2 traccar-server-70d22de4205aec294660378f0d854cbc32c7a6b8.zip |
Fix code analytics issues
Diffstat (limited to 'src/org/traccar/geocode/GeocodeFarmReverseGeocoder.java')
-rw-r--r-- | src/org/traccar/geocode/GeocodeFarmReverseGeocoder.java | 6 |
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 |