1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

simplify adding time and distance to cost matrix

This commit is contained in:
oblonski 2016-10-18 15:25:23 +02:00
parent 8d16801712
commit eb9f72b2d1
No known key found for this signature in database
GPG key ID: 179DE487285680D1

View file

@ -94,6 +94,11 @@ public class FastVehicleRoutingTransportCostsMatrix extends AbstractForwardVehic
return this; 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. * Builds the matrix.
* *