aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-03-23 21:07:56 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-03-23 21:07:56 +1300
commit23086613c6e88aa768afa795340fe9ac0ac3a7db (patch)
tree9536d308574a113215a58f3d1d24ec15618ef855 /test/org
parent35701e0a14782d67320a7c667d7afd980bbc5dd0 (diff)
downloadtrackermap-server-23086613c6e88aa768afa795340fe9ac0ac3a7db.tar.gz
trackermap-server-23086613c6e88aa768afa795340fe9ac0ac3a7db.tar.bz2
trackermap-server-23086613c6e88aa768afa795340fe9ac0ac3a7db.zip
Add Nominatim reverse geocoding (fix #615)
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/geocode/NominatimReverseGeocoderTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/org/traccar/geocode/NominatimReverseGeocoderTest.java b/test/org/traccar/geocode/NominatimReverseGeocoderTest.java
new file mode 100644
index 000000000..74e03f271
--- /dev/null
+++ b/test/org/traccar/geocode/NominatimReverseGeocoderTest.java
@@ -0,0 +1,19 @@
+package org.traccar.geocode;
+
+import static org.junit.Assert.assertEquals;
+import org.junit.Test;
+
+public class NominatimReverseGeocoderTest {
+
+ @Test
+ public void testGetAddress() {
+
+ ReverseGeocoder reverseGeocoder = new NominatimReverseGeocoder("http://nominatim.openstreetmap.org/reverse");
+
+ /*assertEquals(
+ "ulitsa Morskiye dubki, 2, Lisy Nos, Saint Petersburg, Russia, 197755",
+ reverseGeocoder.getAddress(60.0, 30.0));*/
+
+ }
+
+}