From 940e493110a59e9dcfbef35c805702a21545033c Mon Sep 17 00:00:00 2001 From: jcardus Date: Tue, 21 Jan 2020 17:59:20 +0000 Subject: fixed ident removed url from here geocode test --- src/main/java/org/traccar/geocoder/HereGeocoder.java | 8 ++++---- src/test/java/org/traccar/geocoder/GeocoderTest.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3