aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEd Freyfogle <freyfogle@users.noreply.github.com>2022-03-24 11:32:25 +0100
committerGitHub <noreply@github.com>2022-03-24 11:32:25 +0100
commitd65a3af95e2877b8f0fcb7f44cbfbd8b4f987622 (patch)
treea91e0b9e256fb31f4a6e3655a3a77fa93e301f65 /src
parenteef38a4bf97a29873e29972b8f1fc7cdc4f9e927 (diff)
downloadtrackermap-server-d65a3af95e2877b8f0fcb7f44cbfbd8b4f987622.tar.gz
trackermap-server-d65a3af95e2877b8f0fcb7f44cbfbd8b4f987622.tar.bz2
trackermap-server-d65a3af95e2877b8f0fcb7f44cbfbd8b4f987622.zip
pass language param to OpenCageGeocoder
Diffstat (limited to 'src')
-rw-r--r--src/test/java/org/traccar/geocoder/GeocoderTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/geocoder/GeocoderTest.java b/src/test/java/org/traccar/geocoder/GeocoderTest.java
index 9134194f2..52dac625a 100644
--- a/src/test/java/org/traccar/geocoder/GeocoderTest.java
+++ b/src/test/java/org/traccar/geocoder/GeocoderTest.java
@@ -41,7 +41,7 @@ public class GeocoderTest {
@Test
public void testOpenCage() {
Geocoder geocoder = new OpenCageGeocoder(
- "http://api.opencagedata.com/geocode/v1", "SECRET", 0, new AddressFormat());
+ "http://api.opencagedata.com/geocode/v1", "SECRET", "en", 0, new AddressFormat());
String address = geocoder.getAddress(34.116302, -118.051519, null);
assertEquals("Charleston Road, California, US", address);
}