diff options
author | jcardus <joaquim.cardeira@gmail.com> | 2020-01-21 17:59:20 +0000 |
---|---|---|
committer | jcardus <joaquim.cardeira@gmail.com> | 2020-01-21 17:59:20 +0000 |
commit | 940e493110a59e9dcfbef35c805702a21545033c (patch) | |
tree | a312b786d59b3d2e221b09eaf9e1ce10f5d15514 | |
parent | 3cb539716714b08056a8751493e8a82bcdcf2764 (diff) | |
download | traccar-server-940e493110a59e9dcfbef35c805702a21545033c.tar.gz traccar-server-940e493110a59e9dcfbef35c805702a21545033c.tar.bz2 traccar-server-940e493110a59e9dcfbef35c805702a21545033c.zip |
fixed ident
removed url from here geocode test
-rw-r--r-- | src/main/java/org/traccar/geocoder/HereGeocoder.java | 8 | ||||
-rw-r--r-- | src/test/java/org/traccar/geocoder/GeocoderTest.java | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/geocoder/HereGeocoder.java b/src/main/java/org/traccar/geocoder/HereGeocoder.java index a204ddfab..0f67a1930 100644 --- a/src/main/java/org/traccar/geocoder/HereGeocoder.java +++ b/src/main/java/org/traccar/geocoder/HereGeocoder.java @@ -29,14 +29,14 @@ public class HereGeocoder extends JsonGeocoder { url += "&app_code=" + key; url += "&apiKey=" + key; if (language != null) { - url += "&language=" + language; + url += "&language=" + language; } return url; } - public HereGeocoder(String url, String id, String key, String language, - int cacheSize, AddressFormat addressFormat) { - super(formatUrl(url, id, key, language), cacheSize, addressFormat); + public HereGeocoder( + String url, String id, String key, String language, int cacheSize, AddressFormat addressFormat) { + super(formatUrl(url, id, key, language), cacheSize, addressFormat); } @Override diff --git a/src/test/java/org/traccar/geocoder/GeocoderTest.java b/src/test/java/org/traccar/geocoder/GeocoderTest.java index 407779be8..3fb6d6162 100644 --- a/src/test/java/org/traccar/geocoder/GeocoderTest.java +++ b/src/test/java/org/traccar/geocoder/GeocoderTest.java @@ -73,7 +73,7 @@ public class GeocoderTest { @Ignore @Test public void testHere() { - Geocoder geocoder = new HereGeocoder("https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json", "", "", null, 0, new AddressFormat()); + Geocoder geocoder = new HereGeocoder("", "", "", null, 0, new AddressFormat()); String address = geocoder.getAddress(48.8575, 2.2944, null); assertEquals("6 Avenue Gustave Eiffel, Paris, Île-de-France, FRA", address); } |