Hello, you can place an induction loop at the end of that lane and call method traci.inductionloop.getLastStepVehicleNumber() in each simulation step. Note, that this may lead to inaccuracies if a vehicle stops on the inductionloop but this can be avoided if the induction loop is placed on the very end of the lane (inductinLoopPos = laneLength) regards, Jakob
2017-05-18 15:08 GMT+02:00 Flávio Alexandre <[email protected]>: > Hi. How to know (or count) the number of vehicles that leave a lane? > > Thanks, > Flávio Nunes > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
