In order to avoid waiting time for traffic signals,it proposes a new shortest path planning algorithm,which obtains traffic network,real-time traffic conditions and traffic signal information based on V2X,and considers the differences in the waiting time when waiting for traffic lights with different turns. This algorithm solves the problem that the differences between the waiting time when waiting for traffic lights with different turns have different impacts on path planning results,which truly realizes the shortest travel time on the road. In 10000 times road driving simulation experiments,compared with the traditional shortest path planning algorithm which only considers driving time(travel time=driving time+waiting time),the new algorithm proves that the average travel time is effectively reduced by 19.2%,and the average waiting time is reduced by 62.4%,which has important significance on saving public travel time,improving driving experience,and reducing accident rate at traffic intersections.