aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcardus <joaquim.cardeira@gmail.com>2020-01-21 18:07:36 +0000
committerjcardus <joaquim.cardeira@gmail.com>2020-01-21 18:07:36 +0000
commit19840bea407c505147181805c4f036f224f2f90c (patch)
treeb61ed054b186ad6ac146fdfdd0e536e3f74ab7e7
parent940e493110a59e9dcfbef35c805702a21545033c (diff)
downloadtraccar-server-19840bea407c505147181805c4f036f224f2f90c.tar.gz
traccar-server-19840bea407c505147181805c4f036f224f2f90c.tar.bz2
traccar-server-19840bea407c505147181805c4f036f224f2f90c.zip
fixed ident
intellij uses 2 spaces, this project uses 4.
-rw-r--r--src/main/java/org/traccar/geocoder/HereGeocoder.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/org/traccar/geocoder/HereGeocoder.java b/src/main/java/org/traccar/geocoder/HereGeocoder.java
index 0f67a1930..95dc75796 100644
--- a/src/main/java/org/traccar/geocoder/HereGeocoder.java
+++ b/src/main/java/org/traccar/geocoder/HereGeocoder.java
@@ -20,23 +20,23 @@ import javax.json.JsonObject;
public class HereGeocoder extends JsonGeocoder {
private static String formatUrl(String url, String id, String key, String language) {
- if (url == null) {
- url = "https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json";
- }
- url += "?mode=retrieveAddresses&maxresults=1";
- url += "&prox=%f,%f,0";
- url += "&app_id=" + id;
- url += "&app_code=" + key;
- url += "&apiKey=" + key;
- if (language != null) {
- url += "&language=" + language;
- }
- return url;
+ if (url == null) {
+ url = "https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json";
+ }
+ url += "?mode=retrieveAddresses&maxresults=1";
+ url += "&prox=%f,%f,0";
+ url += "&app_id=" + id;
+ url += "&app_code=" + key;
+ url += "&apiKey=" + key;
+ if (language != null) {
+ 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);
+ String url, String id, String key, String language, int cacheSize, AddressFormat addressFormat) {
+ super(formatUrl(url, id, key, language), cacheSize, addressFormat);
}
@Override