diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2013-02-03 08:25:12 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2013-02-03 08:25:12 +0100 |
commit | 7a88ebbee331ce5dd1ae36759fcbb58ca0902002 (patch) | |
tree | a41f1b46217dae51c8efa9a55f9847534b03a112 /main/src/cgeo/geocaching/connector | |
parent | b6b73582a6d3f52017de98f0618f82724bdac15d (diff) | |
download | cgeo-7a88ebbee331ce5dd1ae36759fcbb58ca0902002.zip cgeo-7a88ebbee331ce5dd1ae36759fcbb58ca0902002.tar.gz cgeo-7a88ebbee331ce5dd1ae36759fcbb58ca0902002.tar.bz2 |
don't load image urls when getting OC cache lists
Diffstat (limited to 'main/src/cgeo/geocaching/connector')
-rw-r--r-- | main/src/cgeo/geocaching/connector/oc/OCXMLClient.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java b/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java index 69bcda0..f438db0 100644 --- a/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java +++ b/main/src/cgeo/geocaching/connector/oc/OCXMLClient.java @@ -31,7 +31,7 @@ public class OCXMLClient { public static cgCache getCache(final String geoCode) { try { - final Parameters params = getOCXmlQueryParameters(true, true); + final Parameters params = getOCXmlQueryParameters(true, true, true); params.put("wp", geoCode); final InputStream data = request(ConnectorFactory.getConnector(geoCode), SERVICE_CACHE, params); @@ -54,7 +54,7 @@ public class OCXMLClient { public static Collection<cgCache> getCachesAround(final Geopoint center, final double distance) { try { - final Parameters params = getOCXmlQueryParameters(false, false); + final Parameters params = getOCXmlQueryParameters(false, false, false); params.put("lat", GeopointFormatter.format(GeopointFormatter.Format.LAT_DECDEGREE_RAW, center)); params.put("lon", GeopointFormatter.format(GeopointFormatter.Format.LON_DECDEGREE_RAW, center)); params.put("distance", String.format(Locale.US, "%f", distance)); @@ -98,18 +98,18 @@ public class OCXMLClient { return null; } - private static Parameters getOCXmlQueryParameters(final boolean withDescription, final boolean withLogs) { + private static Parameters getOCXmlQueryParameters(final boolean withDescription, final boolean withLogs, final boolean withImages) { return new Parameters("modifiedsince", "20060320000000", "user", "0", "cache", "1", "cachedesc", withDescription ? "1" : "0", "cachelog", withLogs ? "1" : "0", - "picture", "1", + "picture", withImages ? "1" : "0", "removedobject", "0", "session", "0", "doctype", "0", "charset", "utf-8", "zip", "gzip", - "picturefromcachelog", "1"); + "picturefromcachelog", withImages ? "1" : "0"); } } |