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:
parent
8d16801712
commit
eb9f72b2d1
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue