aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-06-23 22:13:19 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-06-23 22:13:19 -0700
commitae09c5920d0a89c1243cea81abe300272994ff6b (patch)
tree818dd9159273ca6779225dd43bd0270a40a4627f /src/test/java
parent8e258bfd1a9042bafc9d66b8c3836845328c4f09 (diff)
downloadtrackermap-server-ae09c5920d0a89c1243cea81abe300272994ff6b.tar.gz
trackermap-server-ae09c5920d0a89c1243cea81abe300272994ff6b.tar.bz2
trackermap-server-ae09c5920d0a89c1243cea81abe300272994ff6b.zip
Add PositionStack geocoder
Diffstat (limited to 'src/test/java')
-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 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);
+ }
}