mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
issue #144 - replace deprecated methods
This commit is contained in:
parent
c083b74ea7
commit
600087fd33
48 changed files with 398 additions and 379 deletions
|
|
@ -89,7 +89,7 @@ public class AdditionalDistanceConstraintExample {
|
|||
}
|
||||
|
||||
double getDistance(TourActivity from, TourActivity to){
|
||||
return costMatrix.getDistance(from.getLocationId(), to.getLocationId());
|
||||
return costMatrix.getDistance(from.getLocation().getId(), to.getLocation().getId());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -125,7 +125,7 @@ public class AdditionalDistanceConstraintExample {
|
|||
}
|
||||
|
||||
double getDistance(TourActivity from, TourActivity to){
|
||||
return costsMatrix.getDistance(from.getLocationId(), to.getLocationId());
|
||||
return costsMatrix.getDistance(from.getLocation().getId(), to.getLocation().getId());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue