package cgeo.geocaching.maps.google.v1;
import cgeo.geocaching.models.IWaypoint;
import cgeo.geocaching.location.Geopoint;
import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl;
import cgeo.geocaching.maps.interfaces.GeoPointImpl;
import cgeo.geocaching.maps.interfaces.MapItemFactory;
public class GoogleMapItemFactory implements MapItemFactory {
@Override
public GeoPointImpl getGeoPointBase(final Geopoint coords) {
return new GoogleGeoPoint(coords.getLatitudeE6(), coords.getLongitudeE6());
}
@Override
public CachesOverlayItemImpl getCachesOverlayItem(final IWaypoint coordinate, final boolean applyDistanceRule) {
return new GoogleCacheOverlayItem(coordinate, applyDistanceRule);
}
}