Hello, its not trivial to define the 'route duration' at a fixed point in time since the travel time for an edge requires some sort of averaging over vehicles that use the edge or have used it in some interval. Most likely that value will be different from the actual travel time at the time the vehicle reaches that edge. - when computing the routes with duarouter, the assumed travelTime is the value of 'cost' attribute in the .rou.alt.xml file (in seconds) - when computing routes with the rerouting-device the assumed travelTime for each edge can be written by setting the option --device.rerouting.output (this writes the values for all edges every time the weights are updated) - via TraCI you can get the current travel time using traci.edge.getTraveltime - using <edgeData> output you can write the travel times at any desired aggregation interval and compute the route duration from that
regards, Jakob 2017-04-03 21:33 GMT+02:00 Mani Amoozadeh <[email protected]>: > Hello, > > > > Is there any ways to get the 'route duration' of a vehicle at the time of > insertion? > > Assuming that the destination and route is fixed during the simulation. > > > > - Mani > > ------------------------------------------------------------ > ------------------ > 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
