aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-01-31 18:11:05 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2022-01-31 18:11:05 -0800
commit2dd9cf55d1503aa4a35fd0b57126435e4036a9ff (patch)
treee4a5b6d280be49d9fd06cba73c9cb84f3dab1830 /src/test/java
parentb332952f24a8b162b61024622771fb1dab41f9a3 (diff)
downloadtrackermap-server-2dd9cf55d1503aa4a35fd0b57126435e4036a9ff.tar.gz
trackermap-server-2dd9cf55d1503aa4a35fd0b57126435e4036a9ff.tar.bz2
trackermap-server-2dd9cf55d1503aa4a35fd0b57126435e4036a9ff.zip
Add Geoapify geocoder
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/traccar/geocoder/GeocoderTest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test/java/org/traccar/geocoder/GeocoderTest.java b/src/test/java/org/traccar/geocoder/GeocoderTest.java
index 380980d2b..9134194f2 100644
--- a/src/test/java/org/traccar/geocoder/GeocoderTest.java
+++ b/src/test/java/org/traccar/geocoder/GeocoderTest.java
@@ -105,9 +105,17 @@ public class GeocoderTest {
@Ignore
@Test
public void testMapTiler() {
- Geocoder geocoder = new MapTilerGeocoder("mnbnwLErpdspq13f0kC6", 0, new AddressFormat());
+ Geocoder geocoder = new MapTilerGeocoder("", 0, new AddressFormat());
String address = geocoder.getAddress(40.733, -73.989, null);
assertEquals("East 13th Street, New York City, New York, United States", address);
}
+ @Ignore
+ @Test
+ public void testGeoapify() {
+ Geocoder geocoder = new GeoapifyGeocoder("", null, 0, new AddressFormat());
+ String address = geocoder.getAddress(40.733, -73.989, null);
+ assertEquals("114 East 13th Street, New York, New York, US", address);
+ }
+
}