package edu.ncsu.soc.project3; import java.util.ArrayList; import com.google.android.maps.GeoPoint; /** * This is a utility class that returns GPS coordinates. The logic here * can be replaced to return data from the internal android GPS sensor. We * are currently using a fixed data set to enable easily repeatable and testable * results. * * @author derek * */ public class GPSWrapper { private static ArrayList locations = new ArrayList(); private static int counter = 0; static { locations.add(new GeoPoint(35772052, -78673718)); locations.add(new GeoPoint(35769329, -78678847)); locations.add(new GeoPoint(35770596, -78681080)); locations.add(new GeoPoint(35772956, -78683933)); locations.add(new GeoPoint(35775429, -78680809)); locations.add(new GeoPoint(35777934, -78676223)); locations.add(new GeoPoint(35773483, -78676086)); locations.add(new GeoPoint(35776804, -78670807)); } public static GeoPoint getCurrentLocation() { return locations.get(counter++ % locations.size()); } }