1
0
Fork 0
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:
He Huang 2017-08-03 18:04:45 +08:00
parent d95b1d2f14
commit 75e9b6f9dd
23 changed files with 222 additions and 1061 deletions

View file

@ -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()));
}
}
}