aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/geocoder
diff options
context:
space:
mode:
authorOlivier Girondel <olivier@biniou.info>2018-09-06 02:52:20 +0200
committerOlivier Girondel <olivier@biniou.info>2018-09-24 12:44:18 +0200
commit2e5d13c34227a6c636b78ee4a867dd45fe69afa8 (patch)
tree63da193abebbb77f2f98705e959408ed677123f3 /test/org/traccar/geocoder
parent33a04ec588f5f0f1145249a5c5163fef0f35fb1c (diff)
downloadtrackermap-server-2e5d13c34227a6c636b78ee4a867dd45fe69afa8.tar.gz
trackermap-server-2e5d13c34227a6c636b78ee4a867dd45fe69afa8.tar.bz2
trackermap-server-2e5d13c34227a6c636b78ee4a867dd45fe69afa8.zip
Add Base Adresse Nationale reverse geocoder (fix #3769)
Diffstat (limited to 'test/org/traccar/geocoder')
-rw-r--r--test/org/traccar/geocoder/GeocoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/org/traccar/geocoder/GeocoderTest.java b/test/org/traccar/geocoder/GeocoderTest.java
index 12d8b4cd6..7b3c6662c 100644
--- a/test/org/traccar/geocoder/GeocoderTest.java
+++ b/test/org/traccar/geocoder/GeocoderTest.java
@@ -135,4 +135,23 @@ public class GeocoderTest {
assertEquals("605 ESTRELLA AVE, ARCADIA, California United States of America, US", waitAddress());
}
+ @Ignore
+ @Test
+ public void testBan() throws InterruptedException {
+ Geocoder geocoder = new BanGeocoder(0, new AddressFormat("%f [%d], %c"));
+
+ geocoder.getAddress(48.8575, 2.2944, new Geocoder.ReverseGeocoderCallback() {
+ @Override
+ public void onSuccess(String address) {
+ setAddress(address);
+ }
+
+ @Override
+ public void onFailure(Throwable e) {
+ }
+ });
+
+ assertEquals("8 Avenue Gustave Eiffel 75007 Paris [75, Paris, Île-de-France], FR", waitAddress());
+ }
+
}