matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
83 stars 180 forks source link

VolumesAnalyzer aggregating all pt volumes into "car" mode #70

Closed LockeBirdsey closed 5 years ago

LockeBirdsey commented 5 years ago

Need to get link volumes out for buses, cars and trams. However the VolumesAnalyzer returned by controler.getVolumes() only has the "car" mode registered, but each of the volumes returned is an aggregate of the valid pt sub-modes (in my case: bus, train, tram, subway) for each link.

golanbendor commented 5 years ago

Inside the VolumesAnalyzer class you have some overloading methods for multi-modal support

LockeBirdsey commented 5 years ago

I am aware of this and have already set observeModes to true. After some digging, it appears that every event triggered generates a vehicleId of "car", even on links that do not specify "car" as a valid mode.