diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-03-26 13:49:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-26 13:49:35 -0700 |
commit | ec3b29589d9006e270dad5f1f4fecf8997f3128d (patch) | |
tree | 91295cd8cc05ea12de6178025877ff42e30f37b9 /src/test/java | |
parent | 75ec3fa275b350edfa9f4dce67e2cc098e684b70 (diff) | |
parent | 15f9052f94d2e5b20ffeff60b3eb372b4c3d8621 (diff) | |
download | trackermap-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')
-rw-r--r-- | src/test/java/org/traccar/geocoder/GeocoderTest.java | 8 |
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); + } } |