arup-group / gelato

Gelato turns MATSim outputs into transport sustainability KPI metrics
GNU General Public License v3.0
9 stars 1 forks source link

Write Passenger KM KPI #50

Closed divyasharma-arup closed 7 months ago

divyasharma-arup commented 7 months ago

Would it be possible to write the passenger KM KPI to an output file? No scaling is required for this metric, it's a parameter.

// TODO add kpi for passenger KM // to get to a passenger-km metric the easiest way is to go through legs // Table legs = dataModel.getLegs(); // vehicles.stringColumn("vehicleID").setName("vehicle_id"); // legs = legs // .joinOn("vehicle_id") // .inner(vehicles.selectColumns("vehicle_id", "PTLineID", "PTRouteID")); // Table kpi = legs.selectColumns( // "person", "trip_id", "dep_time", "trav_time", // "distance", "mode", "vehicle_id", "PTLineID", "PTRouteID");