aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorEd Freyfogle <freyfogle@users.noreply.github.com>2022-03-24 22:37:01 +0100
committerGitHub <noreply@github.com>2022-03-24 22:37:01 +0100
commit83af89dfe56753ab932014b89646c17577ba913d (patch)
tree7704829173175d3053c9cbde3cb7db43580029ff /src/main
parentf46a0471e9531febf33072adda9414e290354911 (diff)
downloadtrackermap-server-83af89dfe56753ab932014b89646c17577ba913d.tar.gz
trackermap-server-83af89dfe56753ab932014b89646c17577ba913d.tar.bz2
trackermap-server-83af89dfe56753ab932014b89646c17577ba913d.zip
changed to be same as in Nominatim.java
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/geocoder/OpenCageGeocoder.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/geocoder/OpenCageGeocoder.java b/src/main/java/org/traccar/geocoder/OpenCageGeocoder.java
index c4a82b03c..bbcc00cd0 100644
--- a/src/main/java/org/traccar/geocoder/OpenCageGeocoder.java
+++ b/src/main/java/org/traccar/geocoder/OpenCageGeocoder.java
@@ -26,9 +26,7 @@ public class OpenCageGeocoder extends JsonGeocoder {
url = "https://api.opencagedata.com/geocode/v1";
}
url += "/json?q=%f,%f&no_annotations=1&key=" + key;
- if (language == null) {
- url += "&language=en";
- } else {
+ if (language != null) {
url += "&language=" + language;
}
return url;