A smart city leverages technology to enhance the livability of urban life. One key element is optimizing traffic flow, which can dramatically reduce congestion and improve commuting. This involves incorporating innovative solutions such as smart traffic lights, dynamic routing systems, and connected vehicles. By collecting data on traffic patterns