Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Computing reroute times using TraCI

The latest development version includes the new API call findRoute (in the python client: traci.simulation.findRoute(fromEdge, toEdge, vTypeID)) which returns an object with the fields 'edges' and 'travelTime'. see

2017-11-15 0:46 GMT+01:00 Xavier Paul Lister Lavenir <xlavenir@xxxxxxx>:

Dear Sumo Community,


I am rerouting a vehicle dynamically using TraCI (Python). I would like to compare the time taken for two separate routes which a vehicle could take. For example, if the vehicle is at point A in the network, I would like to compare the time to reach point B and to point C so that I can choose the shortest route (by time).  This value must be calculated during the rerouting process but I can’t seem to find a function which handles this.

I need to use TraCI and the route time must be computed during the simulation.


Thank you very much.


Kind regards,

Xavier Lavenir

sumo-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top