blob: d23b3cd8e008d44d4821f1878c3cf55c51221239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package cgeo.geocaching.connector;
import cgeo.geocaching.cgCache;
/**
* connector for OpenCaching.de (and several other country domains)
*
*/
public class OCConnector extends AbstractConnector implements IConnector {
@Override
public boolean canHandle(String geocode) {
return geocode != null && geocode.toUpperCase().startsWith("OC");
}
@Override
public String getCacheUrl(cgCache cache) {
return "http://www.opencaching.de/viewcache.php?wp=" + cache.geocode;
}
}
|