aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-03-26 13:49:35 -0700
committerGitHub <noreply@github.com>2021-03-26 13:49:35 -0700
commitec3b29589d9006e270dad5f1f4fecf8997f3128d (patch)
tree91295cd8cc05ea12de6178025877ff42e30f37b9 /src/test/java/org/traccar
parent75ec3fa275b350edfa9f4dce67e2cc098e684b70 (diff)
parent15f9052f94d2e5b20ffeff60b3eb372b4c3d8621 (diff)
downloadtrackermap-server-ec3b29589d9006e270dad5f1f4fecf8997f3128d.tar.gz
trackermap-server-ec3b29589d9006e270dad5f1f4fecf8997f3128d.tar.bz2
trackermap-server-ec3b29589d9006e270dad5f1f4fecf8997f3128d.zip
Merge pull request #4656 from PinCarBR/mapbox_geocoder
Implement Mapbox geocoder
Diffstat (limited to 'src/test/java/org/traccar')
-rw-r--r--src/test/java/org/traccar/geocoder/GeocoderTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/geocoder/GeocoderTest.java b/src/test/java/org/traccar/geocoder/GeocoderTest.java
index d93a72a87..5f1748984 100644
--- a/src/test/java/org/traccar/geocoder/GeocoderTest.java
+++ b/src/test/java/org/traccar/geocoder/GeocoderTest.java
@@ -93,4 +93,12 @@ public class GeocoderTest {
String address = geocoder.getAddress(28.6129602407977, 77.2294557094574, null);
assertEquals("India Gate, New Delhi, India", address);
}
+
+ @Ignore
+ @Test
+ public void testMapbox() {
+ Geocoder geocoder = new MapboxGeocoder("", 0, new AddressFormat("%f"));
+ String address = geocoder.getAddress(40.733, -73.989, null);
+ assertEquals("120 East 13th Street, New York, New York 10003, United States", address);
+ }
}