Fixed bug with same item can be added to avoid roads twice
This commit is contained in:
parent
99e8409e37
commit
7d0916bce6
1 changed files with 4 additions and 2 deletions
|
@ -114,9 +114,11 @@ public class RoutingConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addImpassableRoad(RouteDataObject r) {
|
public void addImpassableRoad(RouteDataObject r) {
|
||||||
|
if (!impassableRoadIds.contains(r.id)){
|
||||||
impassableRoadIds.add(r.id);
|
impassableRoadIds.add(r.id);
|
||||||
impassableRoads.add(r);
|
impassableRoads.add(r);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private String getAttribute(VehicleRouter router, String propertyName) {
|
private String getAttribute(VehicleRouter router, String propertyName) {
|
||||||
|
|
Loading…
Reference in a new issue