Revert "feat(map): add GPS point downsampling and UI density control"
This reverts commit c15dd28f3b.
This commit is contained in:
@@ -17,25 +17,10 @@ public class TrackerDatabase extends SQLiteOpenHelper {
|
||||
super(context, DB_NAME, null, DB_VERSION);
|
||||
}
|
||||
|
||||
public synchronized List<LocationPoint> history(String address, long historyFrom, long historyTo)
|
||||
public List<LocationPoint> history(String address, long historyFrom, long historyTo)
|
||||
{
|
||||
ArrayList<LocationPoint> result = new ArrayList<LocationPoint>();
|
||||
if (address == null) return result;
|
||||
Cursor cursor = getReadableDatabase().query("location_history", null,
|
||||
"address=? AND logged_at>=? AND logged_at<=?",
|
||||
new String[] { address, String.valueOf(historyFrom), String.valueOf(historyTo) },
|
||||
null, null, "logged_at ASC");
|
||||
try {
|
||||
while (cursor.moveToNext()) {
|
||||
LocationPoint point = new LocationPoint();
|
||||
point.latitude = cursor.getDouble(cursor.getColumnIndex("latitude"));
|
||||
point.longitude = cursor.getDouble(cursor.getColumnIndex("longitude"));
|
||||
point.accuracy = cursor.getFloat(cursor.getColumnIndex("accuracy"));
|
||||
point.timestamp = cursor.getLong(cursor.getColumnIndex("logged_at"));
|
||||
result.add(point);
|
||||
}
|
||||
} finally { cursor.close(); }
|
||||
return result;
|
||||
// TODO: Implement this method
|
||||
return null;
|
||||
}
|
||||
|
||||
public void onCreate(SQLiteDatabase db) {
|
||||
|
||||
Reference in New Issue
Block a user