From 2e5d13c34227a6c636b78ee4a867dd45fe69afa8 Mon Sep 17 00:00:00 2001 From: Olivier Girondel Date: Thu, 6 Sep 2018 02:52:20 +0200 Subject: Add Base Adresse Nationale reverse geocoder (fix #3769) --- test/org/traccar/geocoder/GeocoderTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/org') 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()); + } + } -- cgit v1.2.3