diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2012-06-20 23:19:03 +0400 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2012-06-20 23:19:03 +0400 |
commit | c498c14727a90539c008f7b05185a62d6ee6512e (patch) | |
tree | f656fc904f8f0fa706695d0d42b18d566d8c5563 /test | |
parent | 23bf37045d96197ed43a02b48b9996103922593a (diff) | |
download | traccar-server-c498c14727a90539c008f7b05185a62d6ee6512e.tar.gz traccar-server-c498c14727a90539c008f7b05185a62d6ee6512e.tar.bz2 traccar-server-c498c14727a90539c008f7b05185a62d6ee6512e.zip |
Add reverse geocoding
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/geocode/GoogleReverseGeocoderTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/org/traccar/geocode/GoogleReverseGeocoderTest.java b/test/org/traccar/geocode/GoogleReverseGeocoderTest.java new file mode 100644 index 000000000..75e4dad72 --- /dev/null +++ b/test/org/traccar/geocode/GoogleReverseGeocoderTest.java @@ -0,0 +1,19 @@ +package org.traccar.geocode; + +import static org.junit.Assert.assertEquals; +import org.junit.Test; + +public class GoogleReverseGeocoderTest { + + @Test + public void testGetAddress() { + + ReverseGeocoder reverseGeocoder = new GoogleReverseGeocoder(); + + assertEquals( + "Novotsentral'naya ulitsa, Saint Petersburg, Russia", + reverseGeocoder.getAddress(60.0, 30.0)); + + } + +} |