aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-21 22:41:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-21 22:41:47 -0700
commit2744b305b48d1d1215e326b3858a18f32d485eef (patch)
tree79b4e44dc7fbc45dfa6f3c71f3be2a5a1aeb9c7c /src/test/java/org
parentd47b07999d38881ec2a8fee3be6683d3e0a724d5 (diff)
downloadtrackermap-server-2744b305b48d1d1215e326b3858a18f32d485eef.tar.gz
trackermap-server-2744b305b48d1d1215e326b3858a18f32d485eef.tar.bz2
trackermap-server-2744b305b48d1d1215e326b3858a18f32d485eef.zip
Implement MapTiler geocoder
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/traccar/geocoder/GeocoderTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/geocoder/GeocoderTest.java b/src/test/java/org/traccar/geocoder/GeocoderTest.java
index 5f1748984..380980d2b 100644
--- a/src/test/java/org/traccar/geocoder/GeocoderTest.java
+++ b/src/test/java/org/traccar/geocoder/GeocoderTest.java
@@ -101,4 +101,13 @@ public class GeocoderTest {
String address = geocoder.getAddress(40.733, -73.989, null);
assertEquals("120 East 13th Street, New York, New York 10003, United States", address);
}
+
+ @Ignore
+ @Test
+ public void testMapTiler() {
+ Geocoder geocoder = new MapTilerGeocoder("mnbnwLErpdspq13f0kC6", 0, new AddressFormat());
+ String address = geocoder.getAddress(40.733, -73.989, null);
+ assertEquals("East 13th Street, New York City, New York, United States", address);
+ }
+
}