Modal Split Analysis
Requirements: Network, Events, Optionally: Shapefile with zones. Aggregation plugin.
Data preparation
- Add the network file, events file, and if you have the zones shapefile, to Via.
- Create the following layers:
- Network
- Agents (from Events)
- Vehicles (from Events)

- Create an OD Aggregation layer and open its settings dialog.
- If you added a Shapes file with zones, select it in the
Aggregation Zonessection.
- Switch to the
Attributessection and edit the defaultCountsattribute to use theTripsdata source.

- Create an additional aggregation attribute, name it
carShare, use theTripsdata source and set it to calculate the aggregation asShare, withTrip Modecontainingcar.

- Create an additional aggregation attribute, name it
ptShare, use theTripsdata source and set it to calculate the aggregation asShare, withTrip Modecontainingpt.

- Click on
OKto calculate the attributes.
Visualization
- Open the settings dialog of the Aggregation Layer.
- Switch to the
Zonessection and set the color to use an attribute mapping on the attributecarShare (out)with a color ramp between0.0and1.0.
ThecarShare (out)describes the outgoing-value of the OD-aggregation for each zone. As we usedTripsas data source, this describes the number of trips starting in each zone, as each trip is an OD relation between two zones.
- Switch to the
Labelssection and enable theShow Labelsoption. Add two parts to the label text, showing thecarShare (out)andptShare (out)as attributes and add matching prefixes before them.
- Close the settings dialog by clicking on
OK. This should result in a visualization similar to the one shown below, where the zones color represent the car-share, and a label showing the values of car- and pt-share.

Since Via 20.3, it’s also possible to visualize the shares as small charts within the zones, e.g. small pie charts.
Alternative Visualization
- Open the settings dialog of the Aggregation Layer.
- Disable the display of zones by unchecking the
Show Zonescheckbox in theZonessection. - Switch to the
Symbolsection and check theShow Symbolscheckbox. - Set the color of the symbol to use an attribute mapping, choose the attribute
ptShare (out)and set a color ramp between the values0.0and1.0.

- Set the size of the symbol to use an attribute mapping, choose the attribute
Counts (out)and set sizes for0.0and some upper bound.

- Set the label in the
Labelssection to show the value ofptShare (out)and chose the positionMiddle-Center. - Close the settings dialog by clicking on
OK. You should now have a visualization similar to the one below, where the color of the symbol reflects the modal share of pt, and the size of the symbol reflects to total number of trips starting in each zone. In addition, the pt-share will also be shown as label on top of the symbol.
