From c498c14727a90539c008f7b05185a62d6ee6512e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 20 Jun 2012 23:19:03 +0400 Subject: Add reverse geocoding --- .../traccar/geocode/GoogleReverseGeocoderTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/org/traccar/geocode/GoogleReverseGeocoderTest.java (limited to 'test') 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)); + + } + +} -- cgit v1.2.3