Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Extremely High Values Returned by traci.edge.getTraveltime

getTraveltime computes its result based on the average vehicle speed on the edge. If all the vehicles are standing while queued at a traffic light, high values result.
You could either compute your own minimum travel time based on the edge length (sumolib) and your own assumptions regarding minimum average speed or you could access the smoothed travel times computed by the rerouting device. For this to work you need to equip a vehicle with the device and then call
traveltime = double(vehicle.getParameter("vehID", "device.rerouting.edge:edgeID"))
For details on how to configure the averaging algorithm, see http://sumo.dlr.de/wiki/Demand/Automatic_Routing#Edge_weights

regards,
Jakob

2018-07-29 21:34 GMT+02:00 Jonathan Harper <jonathan.v.harper@xxxxxxxxx>:
Hello,

When using the function traci.edge.getTraveltime(), the returned value is sometimes extremely large. Is there anyway around this?

Thanks

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Back to the top