Hi, a short remark to this topic: the use of traci.simulation.getDistanceRoad(self, edgeID1, pos1, edgeID2, pos2, isDriving=True) doesn’t take into account the positions (pos1, pos2). Further you should have in mind, that with every rerouting process you do as described in ticket 2524, an additional vehicle is added to your statistics (for example traci.simulation.getDepartedIDList or traci.simulation.getDepartedNumber).
Regards, Stephan _______________ Stephan Beutelschieß Tel.: 0172/7608359 Mail: stephan.beutelschi...@gmail.com > Am 06.08.2017 um 20:45 schrieb Jakob Erdmann via sumo-user > <sumo-user@lists.sourceforge.net>: > > Hello, > to get the distance you can use traci.simulation.getDistanceRoad(self, > edgeID1, pos1, edgeID2, pos2, isDriving=True) > Getting the list of edges is currently a bit more complicated and requires > multiple calls as explained at http://sumo.dlr.de/trac.wsgi/ticket/2524 > regards, > Jakob > > 2017-08-06 16:03 GMT+02:00 Johann van Eeden via sumo-user < > sumo-user@lists.sourceforge.net>: > >> Hello, >> >> So I'm looking to get a list of edges, ie the route where I only have the >> start and end edge IDs. Vehicles get dynamically rerouted with a controller >> script and I have to know the distance between the two said edges. If I >> could get a route between then I can easily get the distance. The start and >> end edges are totally random. >> >> Any tips on how to do this? >> >> Regards >> ------------------------------------------------------------ >> ------------------ >> 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 >> sumo-user@lists.sourceforge.net >> 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 > sumo-user@lists.sourceforge.net > 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 sumo-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sumo-user