The application of path planning serves as a significant instance of intelligent algorithm technology innovation, integrating intelligent science, smart technologies, and industrialization. Its core capability lies in achieving optimal solutions for routes through algorithms, offering people improved navigation paths. Currently, path planning technology has become a focal point of research both domestically and internationally. This paper proposes enhancements to the A* algorithm. By incorporating a heuristic function, the A* algorithm efficiently improves its computational effectiveness, thereby furnishing users with enhanced route planning. In this work, the improved A* algorithm is employed to address issues of road congestion and path planning. Through refining the storage heap structure of the A* algorithm and optimizing Hash table indexing, preprocessing of traffic environment data is performed. Subsequently, data simulation is executed. Based on simulation experiment data and preprocessing of road conditions, the results demonstrate that the enhanced A* algorithm offers accurate information.