aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocode/GoogleReverseGeocoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-21 10:07:27 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-21 10:07:27 +1200
commit87f6ffa67c2cd4b3e7ce72ed7257ea15526c0052 (patch)
tree0ed5252d622cdc0ae6d71306ee70afa539de3c9c /src/org/traccar/geocode/GoogleReverseGeocoder.java
parentccaea63b14e67ae97bef2a0c826337dc3fa4e509 (diff)
downloadtrackermap-server-87f6ffa67c2cd4b3e7ce72ed7257ea15526c0052.tar.gz
trackermap-server-87f6ffa67c2cd4b3e7ce72ed7257ea15526c0052.tar.bz2
trackermap-server-87f6ffa67c2cd4b3e7ce72ed7257ea15526c0052.zip
Implement geocoder address caching
Diffstat (limited to 'src/org/traccar/geocode/GoogleReverseGeocoder.java')
-rw-r--r--src/org/traccar/geocode/GoogleReverseGeocoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/geocode/GoogleReverseGeocoder.java b/src/org/traccar/geocode/GoogleReverseGeocoder.java
index c37d4188f..667436cbe 100644
--- a/src/org/traccar/geocode/GoogleReverseGeocoder.java
+++ b/src/org/traccar/geocode/GoogleReverseGeocoder.java
@@ -22,7 +22,11 @@ import javax.json.JsonString;
public class GoogleReverseGeocoder extends JsonReverseGeocoder {
public GoogleReverseGeocoder() {
- super("http://maps.googleapis.com/maps/api/geocode/json?latlng=%f,%f");
+ this(0);
+ }
+
+ public GoogleReverseGeocoder(int cacheSize) {
+ super("http://maps.googleapis.com/maps/api/geocode/json?latlng=%f,%f", cacheSize);
}
@Override