mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
make VehicleRoutingTransportCosts implement TransportDistance
This commit is contained in:
parent
d95b1d2f14
commit
75e9b6f9dd
23 changed files with 222 additions and 1061 deletions
|
|
@ -217,6 +217,10 @@ public class Figliozzi {
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
public double getDistance(Location from, Location to, double departureTime, Vehicle vehicle) {
|
||||
return EuclideanDistanceCalculator.calculateDistance(locations.getCoord(from.getId()), locations.getCoord(to.getId()));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue