aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2024-06-17 17:13:36 -0700
committerGitHub <noreply@github.com>2024-06-17 17:13:36 -0700
commit195512f41776f663665b9bcc733affc5b19fa52a (patch)
treee623c42ab3ab1416131aa6adebb47a59b0b2a50f /src/test/java/org
parentbc65eb120807b7c899d3fd95fbb6684934bfa3ef (diff)
parenta12690a6acffb356cc90791159c1cb60161bf1af (diff)
downloadtrackermap-server-195512f41776f663665b9bcc733affc5b19fa52a.tar.gz
trackermap-server-195512f41776f663665b9bcc733affc5b19fa52a.tar.bz2
trackermap-server-195512f41776f663665b9bcc733affc5b19fa52a.zip
Merge pull request #5347 from jinzo/photon-geocoder
Photon Geocoder
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/geocoder/GeocoderTest.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/test/java/org/traccar/geocoder/GeocoderTest.java b/src/test/java/org/traccar/geocoder/GeocoderTest.java
index ef2dd062d..3e65d20c7 100644
--- a/src/test/java/org/traccar/geocoder/GeocoderTest.java
+++ b/src/test/java/org/traccar/geocoder/GeocoderTest.java
@@ -69,9 +69,9 @@ public class GeocoderTest {
@Disabled
@Test
public void testBan() {
- Geocoder geocoder = new BanGeocoder(client, 0, new AddressFormat("%f [%d], %c"));
+ Geocoder geocoder = new BanGeocoder(client, 0, new AddressFormat());
String address = geocoder.getAddress(48.8575, 2.2944, null);
- assertEquals("8 Avenue Gustave Eiffel 75007 Paris [75, Paris, Île-de-France], FR", address);
+ assertEquals("8 Avenue Gustave Eiffel, Paris, FR", address);
}
@Disabled
@@ -122,4 +122,11 @@ public class GeocoderTest {
assertEquals("114 East 13th Street, New York, New York, US", address);
}
+ @Disabled
+ @Test
+ public void testGeocodeJSON() {
+ Geocoder geocoder = new GeocodeJsonGeocoder(client, null, null, null, 0, new AddressFormat());
+ String address = geocoder.getAddress(40.7337807, -73.9974401, null);
+ assertEquals("35 West 9th Street, New York, New York, US", address);
+ }
}