List<Record> records = new ArrayList<Record>();
for (int i = 0; i < 5 * 60; i += 30) {
TargetTime tt = new TargetTime(time - i * 1000);
BlockLocation location = _blockLocationService.getLocationForVehicleAndTime(
vid, tt);
if (location != null) {
CoordinatePoint p = applyNoiseToLocation(location.getLocation(), noise);
Record r = new Record();
r.setLocation(location.getLocation());
r.setTimestamp(tt.getTargetTime());
r.setLocation(p);
r.setAccuracy(noise);
records.add(r);
}
}