blob: 463aae94f1e0736393a744c8ae4e6b4b6c3f2582 (
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
|
package cgeo.geocaching.maps.google.v1;
import cgeo.geocaching.IWaypoint;
import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;
public class GoogleCacheOverlayItem extends OverlayItem implements CachesOverlayItemImpl {
final private IWaypoint coord;
final private boolean applyDistanceRule;
public GoogleCacheOverlayItem(final IWaypoint coordinate, boolean applyDistanceRule) {
super(new GeoPoint(coordinate.getCoords().getLatitudeE6(), coordinate.getCoords().getLongitudeE6()), coordinate.getName(), "");
this.coord = coordinate;
this.applyDistanceRule = applyDistanceRule;
}
@Override
public IWaypoint getCoord() {
return coord;
}
@Override
public boolean applyDistanceRule() {
return applyDistanceRule;
}
}
|