aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocoder/OpenCageGeocoder.java
diff options
context:
space:
mode:
authorEd Freyfogle <edf@sloan.mit.edu>2018-10-01 16:23:16 +0200
committerEd Freyfogle <edf@sloan.mit.edu>2018-10-01 16:23:16 +0200
commit58a99a37cb93b8dc582aea23690c613f1c09efcf (patch)
treeff3bef37cfa5ac5dcd167325823b2862f93ea2ca /src/org/traccar/geocoder/OpenCageGeocoder.java
parentfbe52c384d52d71395b846ec2136115cb5ee7e4a (diff)
downloadtrackermap-server-58a99a37cb93b8dc582aea23690c613f1c09efcf.tar.gz
trackermap-server-58a99a37cb93b8dc582aea23690c613f1c09efcf.tar.bz2
trackermap-server-58a99a37cb93b8dc582aea23690c613f1c09efcf.zip
Use the optional no_annotations=1 parameter in the call to the OpenCage API.
This makes the response slightly faster by not requesting information traccar never uses. See: https://opencagedata.com/api#bestpractices https://opencagedata.com/api#forward-opt
Diffstat (limited to 'src/org/traccar/geocoder/OpenCageGeocoder.java')
-rw-r--r--src/org/traccar/geocoder/OpenCageGeocoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/geocoder/OpenCageGeocoder.java b/src/org/traccar/geocoder/OpenCageGeocoder.java
index c21d5562a..822b6e91e 100644
--- a/src/org/traccar/geocoder/OpenCageGeocoder.java
+++ b/src/org/traccar/geocoder/OpenCageGeocoder.java
@@ -22,7 +22,7 @@ import javax.json.JsonObject;
public class OpenCageGeocoder extends JsonGeocoder {
public OpenCageGeocoder(String url, String key, int cacheSize, AddressFormat addressFormat) {
- super(url + "/json?q=%f,%f&key=" + key, cacheSize, addressFormat);
+ super(url + "/json?q=%f,%f&no_annotations=1&key=" + key, cacheSize, addressFormat);
}
@Override