mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
bugfix #98
This commit is contained in:
parent
7914076810
commit
8143cf5777
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue