diff --git a/jsprit-core/src/main/java/com/graphhopper/jsprit/core/util/FastVehicleRoutingTransportCostsMatrix.java b/jsprit-core/src/main/java/com/graphhopper/jsprit/core/util/FastVehicleRoutingTransportCostsMatrix.java index 4249faba..80742c4c 100644 --- a/jsprit-core/src/main/java/com/graphhopper/jsprit/core/util/FastVehicleRoutingTransportCostsMatrix.java +++ b/jsprit-core/src/main/java/com/graphhopper/jsprit/core/util/FastVehicleRoutingTransportCostsMatrix.java @@ -94,6 +94,11 @@ public class FastVehicleRoutingTransportCostsMatrix extends AbstractForwardVehic return this; } + public Builder addTransportTimeAndDistance(int fromIndex, int toIndex, double time, double distance){ + addTransportTime(fromIndex, toIndex, time); + addTransportDistance(fromIndex,toIndex,distance); + return this; + } /** * Builds the matrix. *