Hello all, I forgot to mention an imp thing so re-writing my query again.
I am using an algorithm for vehicular rerouting in my project of SUMO and I need to get the real-time edge travel times in the ".net.xml" file in congestion scenarios. I am using the "*getAdaptedTraveltime(edgeID, time)*" function for this purpose. The normal "*getTraveltime(edgeID)*" function returns *correct* value, but the above function is always returning "*-1*". I am passing *edgeID and the traci step value in place of time*. Could anyone please help me regarding this? I need to understand if I am using this function correctly and is there any condition for using it. Even if there is any other way to get real time values for travel times of edges it would also do. Any help regarding these would really be grateful. P.S. - I know that using adaptTravelTime function in traci - edge.py, we can set the travel times of edges by ourselves. But I need to figure out if there is any function that could give me the real time travel time of edges, instead of me calculating the travel times by a manual method or with a formula and adapting those by myself. Thank you. Sincerely, Surabhi On Sun, Dec 18, 2016 at 8:51 PM, Surabhi Ramdhan Boob <[email protected]> wrote: > Hello All, > > I am using an algorithm for vehicular rerouting in my project of SUMO and > I need to get the real-time edge travel times in the ".net.xml" file in > congestion scenarios. > I am using the "*getAdaptedTraveltime(edgeID, time)*" function for this > purpose. > > The normal "*getTraveltime(edgeID)*" function returns *correct* value, > but the above function is always returning "*-1*". > I am passing *edgeID and the traci step value in place of time*. > > Could anyone please help me regarding this? > I need to understand if I am using this function correctly and is there > any condition for using it. Even if there is any other way to get real time > values for travel times of edges it would also do. > Any help regarding these would really be grateful. > > Thank you. > > Sincerely, > Surabhi > -- > *Surabhi Ramdhan Boob* > *MS Electrical Engineering - Computer Networking* > *North Carolina State University* > *(Contact : +1-919-931-9734 <(919)%20931-9734>)* > -- *Surabhi Ramdhan Boob* *MS Electrical Engineering - Computer Networking* *North Carolina State University* *(Contact : +1-919-931-9734)* ------------------------------------------------------------------------------ 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
