diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-25 10:43:20 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-25 10:43:20 +1200 |
commit | cd011431dbae56ca9b3f4546b1485ab24bdb90af (patch) | |
tree | 63da193abebbb77f2f98705e959408ed677123f3 /test/org/traccar/geocoder | |
parent | 33a04ec588f5f0f1145249a5c5163fef0f35fb1c (diff) | |
parent | 2e5d13c34227a6c636b78ee4a867dd45fe69afa8 (diff) | |
download | trackermap-server-cd011431dbae56ca9b3f4546b1485ab24bdb90af.tar.gz trackermap-server-cd011431dbae56ca9b3f4546b1485ab24bdb90af.tar.bz2 trackermap-server-cd011431dbae56ca9b3f4546b1485ab24bdb90af.zip |
Merge pull request #4047 from oliv3/fr_3769
Add Base Adresse Nationale reverse geocoder
Diffstat (limited to 'test/org/traccar/geocoder')
-rw-r--r-- | test/org/traccar/geocoder/GeocoderTest.java | 19 |
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()); + } + } |