aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocode/GisgraphyReverseGeocoder.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/GisgraphyReverseGeocoder.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/GisgraphyReverseGeocoder.java')
-rw-r--r--src/org/traccar/geocode/GisgraphyReverseGeocoder.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/geocode/GisgraphyReverseGeocoder.java b/src/org/traccar/geocode/GisgraphyReverseGeocoder.java
index 392a11e66..6e0e5a343 100644
--- a/src/org/traccar/geocode/GisgraphyReverseGeocoder.java
+++ b/src/org/traccar/geocode/GisgraphyReverseGeocoder.java
@@ -26,11 +26,11 @@ import java.net.URLConnection;
public class GisgraphyReverseGeocoder extends JsonReverseGeocoder {
public GisgraphyReverseGeocoder() {
- this("http://services.gisgraphy.com/street/streetsearch");
+ this("http://services.gisgraphy.com/street/streetsearch", 0);
}
- public GisgraphyReverseGeocoder(String url) {
- super(url + "?format=json&lat=%f&lng=%f&from=1&to=1");
+ public GisgraphyReverseGeocoder(String url, int cacheSize) {
+ super(url + "?format=json&lat=%f&lng=%f&from=1&to=1", cacheSize);
}
@Override