The multiple Unmanned Aerial Vehicle (multi-UAV) assisted roadside unit (RSU) data acquisition problem considering the coverage quality is a multiobjective optimization problem, which is a NP-hard problem. Heuristic and hyperheuristic algorithms are effective to solve problems of this type. These algorithms can find the optimal or suboptimal solution in a reasonable time. However, such algorithms still have the problems of low convergence accuracy, slow convergence speed, and being easy to fall into the local optimal solution. In this paper, firstly, according to the specific problem scenarios of roadside unit data collection, minimum cost and maximum coverage models based on task cost and coverage quality are established. Then, to solve the optimization model, combined with the update characteristics of the gray wolf optimization algorithm (GWO) and the whale optimization algorithm (WOA), a hybrid weighted gray wolf and whale optimization algorithm (HWGWOA) is proposed. Finally, to verify the effectiveness of the proposed algorithm, extensive simulation experiments are conducted under four different task acquisition scenarios, and the results are compared with those of genetic algorithm (GA), GWO, and WOA. Simulation results show that the algorithm proposed in this paper not only can get lower task cost and higher coverage quality but also has faster convergence speed and better robustness. Specifically, in terms of task cost, the HWGWOA is about 9.54% lower than the GA, about 7.31% lower than the GWO, and about 5.8% lower than the WOA. In terms of coverage, the HWGWOA is up to about 27.87% higher than the GA, about 15.19% higher than the GWO, and about 9.86% higher than the WOA. Therefore, the algorithm is more suitable for large-scale optimization problems.