1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00
This commit is contained in:
oblonski 2014-05-16 16:12:05 +02:00
parent 7914076810
commit 8143cf5777

View file

@ -159,12 +159,12 @@ public class VehicleRoutingTransportCostsMatrix extends AbstractForwardVehicleRo
RelationKey key = RelationKey.newKey(from, to);
if(!timesSet) timesSet = true;
if(times.containsKey(key)){
log.warn("transport-time from " + from + " to " + to + " already exists. This overrides distance.");
log.warn("transport-time from " + from + " to " + to + " already exists. This overrides times.");
}
times.put(key, time);
if(isSymmetric) {
RelationKey revKey = RelationKey.newKey(to, from);
if(distances.containsKey(revKey)) distances.put(revKey, time);
if(times.containsKey(revKey)) times.put(revKey, time);
}
return this;
}