blob: 6ef91db75bb0d79c32fc64aa01a44ddf773721ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package cgeo.geocaching.connector;
import cgeo.geocaching.cgCache;
import org.apache.commons.lang3.StringUtils;
public class GeopeitusConnector extends AbstractConnector {
@Override
public String getName() {
return "geopeitus.ee";
}
@Override
public String getCacheUrl(final cgCache cache) {
return getCacheUrlPrefix() + StringUtils.stripStart(cache.getGeocode().substring(2), "0");
}
@Override
public String getHost() {
return "www.geopeitus.ee";
}
@Override
public boolean canHandle(String geocode) {
return StringUtils.startsWith(geocode, "GE") && isNumericId(geocode.substring(2));
}
@Override
protected String getCacheUrlPrefix() {
return "http://" + getHost() + "/aare/";
}
}
|