diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-06-23 22:13:19 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-06-23 22:13:19 -0700 |
commit | ae09c5920d0a89c1243cea81abe300272994ff6b (patch) | |
tree | 818dd9159273ca6779225dd43bd0270a40a4627f /src/test/java/org/traccar/geocoder | |
parent | 8e258bfd1a9042bafc9d66b8c3836845328c4f09 (diff) | |
download | traccar-server-ae09c5920d0a89c1243cea81abe300272994ff6b.tar.gz traccar-server-ae09c5920d0a89c1243cea81abe300272994ff6b.tar.bz2 traccar-server-ae09c5920d0a89c1243cea81abe300272994ff6b.zip |
Add PositionStack geocoder
Diffstat (limited to 'src/test/java/org/traccar/geocoder')
-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 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); + } } |