aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeocaches.java
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2012-12-31 15:15:07 +0100
committerrsudev <rasch@munin-soft.de>2012-12-31 15:15:07 +0100
commit2da05e50f79c650e3e1e344e1209cb8f2f951c71 (patch)
treed849489dd41f10453cae9244169c77d961616d23 /main/src/cgeo/geocaching/cgeocaches.java
parent6dad55f6843fee707c0d06df4b268563a7eb7374 (diff)
downloadcgeo-2da05e50f79c650e3e1e344e1209cb8f2f951c71.zip
cgeo-2da05e50f79c650e3e1e344e1209cb8f2f951c71.tar.gz
cgeo-2da05e50f79c650e3e1e344e1209cb8f2f951c71.tar.bz2
Opencaching integration with oc11xml api
Implements load of cache details, coordinate search and viewport search for opencaching.de based on oc11xml api
Diffstat (limited to 'main/src/cgeo/geocaching/cgeocaches.java')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 901743c..1210dd4 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -7,6 +7,8 @@ import cgeo.geocaching.activity.FilteredActivity;
import cgeo.geocaching.activity.Progress;
import cgeo.geocaching.apps.cache.navi.NavigationAppFactory;
import cgeo.geocaching.apps.cachelist.CacheListAppFactory;
+import cgeo.geocaching.connector.ConnectorFactory;
+import cgeo.geocaching.connector.capability.ISearchByCenter;
import cgeo.geocaching.connector.gc.AbstractSearchThread;
import cgeo.geocaching.connector.gc.GCParser;
import cgeo.geocaching.connector.gc.SearchHandler;
@@ -1376,7 +1378,17 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
@Override
public void runSearch() {
+
search = GCParser.searchByCoords(coords, Settings.getCacheType(), Settings.isShowCaptcha());
+
+ for (ISearchByCenter centerConn : ConnectorFactory.getSearchByCenterConnectors()) {
+ if (centerConn.isActivated()) {
+ SearchResult temp = centerConn.searchByCenter(coords);
+ if (temp != null) {
+ search.addGeocodes(temp.getGeocodes());
+ }
+ }
+ }
replaceCacheListFromSearch();
}
}