aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRafaelMiquelino <rafaelmiquelino@gmail.com>2021-03-26 08:22:03 -0300
committerRafaelMiquelino <rafaelmiquelino@gmail.com>2021-03-26 08:22:03 -0300
commiteee8a2951a7f005c222c0a3361381128ed9e1c73 (patch)
treeaef6477d73b763961629717bb4f87303c4d25d83 /src/test
parent00ddff42e766e834dee49eb471c0c3aefab022b2 (diff)
downloadtraccar-server-eee8a2951a7f005c222c0a3361381128ed9e1c73.tar.gz
traccar-server-eee8a2951a7f005c222c0a3361381128ed9e1c73.tar.bz2
traccar-server-eee8a2951a7f005c222c0a3361381128ed9e1c73.zip
Implements MapboxGeocoder
Add Mapbox reverser geocoder support
Diffstat (limited to 'src/test')
-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);
+ }
}