From ae09c5920d0a89c1243cea81abe300272994ff6b Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 23 Jun 2020 22:13:19 -0700 Subject: Add PositionStack geocoder --- 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 e70719b89..d93a72a87 100644 --- a/src/test/java/org/traccar/geocoder/GeocoderTest.java +++ b/src/test/java/org/traccar/geocoder/GeocoderTest.java @@ -85,4 +85,12 @@ public class GeocoderTest { String address = geocoder.getAddress(28.6129602407977, 77.2294557094574, null); assertEquals("New Delhi, Delhi. 1 m from India Gate pin-110001 (India)", address); } + + @Ignore + @Test + public void testPositionStack() { + Geocoder geocoder = new PositionStackGeocoder("", 0, new AddressFormat("%f")); + String address = geocoder.getAddress(28.6129602407977, 77.2294557094574, null); + assertEquals("India Gate, New Delhi, India", address); + } } -- cgit v1.2.3