I wanted to get the waiting time of vehicles in SUMO and work it into the TraCI interface. For example I want to receive the getwaitingtime() of each vehicle Id within a certain area of the network.(meaning they are stopped or waiting in a queue). Then I want to add the total waiting time of Vehicles based on lane or each direction. After the total Time is added I want to assign this value to lets say X. and Use the value of X to perform some mathematical calculations and give decision to change the traffic light.
getwaitingtime(). VehID().