Link Search Menu Expand Document

Analyze the Activities of Passengers of a Single Transit Line

Requirements: Network, Events, Transit Schedule, Transit Vehicles

Data preparation

  1. Add the network file, events file, transitSchedule and transitVehicles files to Via.
  2. Create the following layers:
    • Network
    • Agents (from Events)
    • Transit Schedule
      base visualization
  3. Select a transit line of interest, by activating the Transit Schedule query and either clicking on a stop and then select one of the lines, or by directly searching for a transit line.
    select line
  4. Click on the “Create Agent Group” button to create an ID Set containing all the passengers IDs.
    create agent group button
  5. Select the appropriate options, click Create and then enter a name for the new agent group.
    create agent group

Visualization

  1. Open the Agents’ layer settings dialog and add a new group by clicking on the plus-icon. Enter a name for this visualization group (“pax” in the screenshot below) and select the previously generated agent group from the popup menu (“paxLine26” in the screenshot below). Then disable the Default group by unchecking the checkbox in front of it, so only the “pax”-group will be visualized.
    create agent group
  2. After clicking on OK, you should only see activities from agents that, at some time during their day, use the selected transit line. Change the time and observe the changing activity locations.
    current activities

Alternative using the Aggregation Plugin

The above visualization only shows the current activities, depending on the chosen time of day. But sometimes it is of interest to know about all activity locations. This is where the Aggregator plugin is helpful.

  1. Add an Aggregation Layer and open its settings dialog.
  2. Create a new aggregation attribute. Give it a name, select Activities as data source, and add a new filter for Person Id, in Agent Group, and select the previously created ID Set. define aggregator attribute
  3. Click OK for the attribute to be calculated.
  4. Open the settings dialog again after the attribute has been calculated.
  5. Select the new attribute to color the zones, providing a suitable numeric range. aggregator zone color settings
  6. Click OK to see a heatmap of all activities of the passengers of the selected line. aggregator visualization