eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.55k stars 1.43k forks source link

Creating flows from detector count data when we have multiple edges on a lane #15207

Closed oshadajay closed 3 months ago

oshadajay commented 3 months ago

I am following https://sumo.dlr.de/docs/Tools/Detector.html#flowrouterpy to create traffic flows based on detector count data and I have a question on how to create flows when we have multiple edges on a lane. If we place one detector per each edge and have the counts separately in the flows.csv file would that work? Or if we have aggregated detector counts for all edges in each lane, is there a way to use that to create the flows? Appreciate your help getting this resolved. Thank you.

namdre commented 3 months ago

flowrouter will automatically aggregated all "parallel" detectors on the same edge. It will work

oshadajay commented 3 months ago

@namdre Thanks a lot. On a different matter, if we are to count traffic flow from multiple edges on the same lane should we have to put multiple detectors in parallel and aggregate them? Is there a better way of doing this? Can E2 detectors be used? Thank you.

namdre commented 3 months ago

you can use E3 detectors or even edgeData to count traffic on the whole edge: https://sumo.dlr.de/docs/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures.html

oshadajay commented 3 months ago

@namdre Thanks a lot!