aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocode
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-13 06:01:02 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-13 06:01:02 +1300
commit4557cf912fada1dc249333aa05215b0116b8ebab (patch)
tree6eed953b738cd842dc91ecb7e61a473f31748284 /src/org/traccar/geocode
parent0d23a4eb3ef7a84dbfba3bf55ed70f427ccfe02f (diff)
downloadtraccar-server-4557cf912fada1dc249333aa05215b0116b8ebab.tar.gz
traccar-server-4557cf912fada1dc249333aa05215b0116b8ebab.tar.bz2
traccar-server-4557cf912fada1dc249333aa05215b0116b8ebab.zip
Add key support for Nominatim (fix #2620)
Diffstat (limited to 'src/org/traccar/geocode')
-rw-r--r--src/org/traccar/geocode/NominatimReverseGeocoder.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/geocode/NominatimReverseGeocoder.java b/src/org/traccar/geocode/NominatimReverseGeocoder.java
index 0fbeaef83..b393f6490 100644
--- a/src/org/traccar/geocode/NominatimReverseGeocoder.java
+++ b/src/org/traccar/geocode/NominatimReverseGeocoder.java
@@ -27,6 +27,10 @@ public class NominatimReverseGeocoder extends JsonReverseGeocoder {
super(url + "?format=json&lat=%f&lon=%f&zoom=18&addressdetails=1", cacheSize);
}
+ public NominatimReverseGeocoder(String url, String key, int cacheSize) {
+ super(url + "?format=json&lat=%f&lon=%f&zoom=18&addressdetails=1&key=" + key, cacheSize);
+ }
+
@Override
public Address parseAddress(JsonObject json) {
JsonObject result = json.getJsonObject("address");