aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocoder/NominatimGeocoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-21 05:46:02 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-02-21 05:46:02 +1300
commit26eda5d6a7e9ee580bfc5b8c24d95197c3d65e41 (patch)
treeb6f145d961195c8922e90c7267b17e11371f0e09 /src/org/traccar/geocoder/NominatimGeocoder.java
parent94ca35f242acc39d528918eccda5f3f08c2f0c2d (diff)
downloadtrackermap-server-26eda5d6a7e9ee580bfc5b8c24d95197c3d65e41.tar.gz
trackermap-server-26eda5d6a7e9ee580bfc5b8c24d95197c3d65e41.tar.bz2
trackermap-server-26eda5d6a7e9ee580bfc5b8c24d95197c3d65e41.zip
Fix URL problem in geocoders
Diffstat (limited to 'src/org/traccar/geocoder/NominatimGeocoder.java')
-rw-r--r--src/org/traccar/geocoder/NominatimGeocoder.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/geocoder/NominatimGeocoder.java b/src/org/traccar/geocoder/NominatimGeocoder.java
index c10a1414e..4f33468fd 100644
--- a/src/org/traccar/geocoder/NominatimGeocoder.java
+++ b/src/org/traccar/geocoder/NominatimGeocoder.java
@@ -23,6 +23,7 @@ public class NominatimGeocoder extends JsonGeocoder {
if (url == null) {
url = "http://nominatim.openstreetmap.org/reverse";
}
+ url += "?format=json&lat=%f&lon=%f&zoom=18&addressdetails=1";
if (key != null) {
url += "&key=" + key;
}