Hi Florian,
 
you'll have to combine multiple sources for that. Are you interested in the 
cumulated time or distance?
 
For distance:
    * VehRoutes <https://sumo.dlr.de/docs/Simulation/Output/VehRoutes.html> 
      output to get the edges the vehicle took
    * Sumolib <https://sumo.dlr.de/docs/Tools/Sumolib.html>   (
      sumolib.net.edge <https://sumo.dlr.de/pydoc/sumolib.net.edge.html> )
      to get the edge type and edge length information
    * aggregate the edge length per edge type
For time:
    * FCDOutput <https://sumo.dlr.de/docs/Simulation/Output/FCDOutput.html> 
      to get the lane of a vehicle over the course of its travel >> derive
      the edge according to the naming conventions (lane id =
      edgeID_laneIndex) and sum the time per edge
    * continue like for the distance
 
Best regards
Mirko
 
 
 
 
-----Original-Nachricht-----
Betreff: [sumo-user] get Edge Type
Datum: 2023-07-12T15:40:29+0200
Von: "Florian Schnepf via sumo-user" <[email protected]>
An: "[email protected]" <[email protected]>
 
 
 
Hello everyone,
 
I would like to know how long a vehicle rides on which edge type along his 
route. Is there a traci function or a option in the outputs I can use?
 
Thanks in advance

Regards,
Florian
 

_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to