aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
Diffstat (limited to 'test/org')
-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));
+
+ }
+
+}