aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-06-20 23:19:03 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2012-06-20 23:19:03 +0400
commitc498c14727a90539c008f7b05185a62d6ee6512e (patch)
treef656fc904f8f0fa706695d0d42b18d566d8c5563 /test
parent23bf37045d96197ed43a02b48b9996103922593a (diff)
downloadtraccar-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.java19
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));
+
+ }
+
+}