From eee8a2951a7f005c222c0a3361381128ed9e1c73 Mon Sep 17 00:00:00 2001 From: RafaelMiquelino Date: Fri, 26 Mar 2021 08:22:03 -0300 Subject: Implements MapboxGeocoder Add Mapbox reverser geocoder support --- src/test/java/org/traccar/geocoder/GeocoderTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/test/java') 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); + } } -- cgit v1.2.3