aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocoder/GisgraphyGeocoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-11-11 09:21:45 +1300
committerGitHub <noreply@github.com>2017-11-11 09:21:45 +1300
commit204b1074ee57960775066c7c483d54bab8ebf279 (patch)
treebfec39fe84b547dac991f0d38cd69e9c64c688a6 /src/org/traccar/geocoder/GisgraphyGeocoder.java
parent92f00d0da0dafd08ccf2a623406963e61fcde276 (diff)
parent96d89e2e352f5cba70a346b1f71bfb3bd399556b (diff)
downloadtraccar-server-204b1074ee57960775066c7c483d54bab8ebf279.tar.gz
traccar-server-204b1074ee57960775066c7c483d54bab8ebf279.tar.bz2
traccar-server-204b1074ee57960775066c7c483d54bab8ebf279.zip
Merge pull request #3632 from Abyss777/retry_geocoding
Retry geocoding for trips/stops
Diffstat (limited to 'src/org/traccar/geocoder/GisgraphyGeocoder.java')
-rw-r--r--src/org/traccar/geocoder/GisgraphyGeocoder.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/traccar/geocoder/GisgraphyGeocoder.java b/src/org/traccar/geocoder/GisgraphyGeocoder.java
index 1432166e9..a0c831966 100644
--- a/src/org/traccar/geocoder/GisgraphyGeocoder.java
+++ b/src/org/traccar/geocoder/GisgraphyGeocoder.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 - 2016 Anton Tananaev (anton@traccar.org)
+ * Copyright 2015 - 2017 Anton Tananaev (anton@traccar.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,12 +19,12 @@ import javax.json.JsonObject;
public class GisgraphyGeocoder extends JsonGeocoder {
- public GisgraphyGeocoder() {
- this("http://services.gisgraphy.com/reversegeocoding/search", 0);
+ public GisgraphyGeocoder(AddressFormat addressFormat) {
+ this("http://services.gisgraphy.com/reversegeocoding/search", 0, addressFormat);
}
- public GisgraphyGeocoder(String url, int cacheSize) {
- super(url + "?format=json&lat=%f&lng=%f&from=1&to=1", cacheSize);
+ public GisgraphyGeocoder(String url, int cacheSize, AddressFormat addressFormat) {
+ super(url + "?format=json&lat=%f&lng=%f&from=1&to=1", cacheSize, addressFormat);
}
@Override