This research focuses on identifying the optimal route by analyzing the results of Genetic Algorithm and Particle Swarm Optimization. This research uses You Only Look Once version 9 (YOLOv9) to create a vehicle detection and counting system using CCTV footage, with the results of Average Precision (mAP) values of 84.4% during training and 83.9% during testing. Furthermore, this study used the D…