Merge pull request #2561 from osmandapp/obf-merge

City: mergeWith
This commit is contained in:
vshcherb 2016-05-17 22:34:26 +02:00
commit cd1b642848

View file

@ -140,4 +140,15 @@ public class City extends MapObject {
this.isin = isin;
}
public void mergeWith(City city) {
for (Street street : city.listOfStreets) {
if (listOfStreets.contains(street)) {
listOfStreets.get(listOfStreets.indexOf(street)).mergeWith(street);
} else {
listOfStreets.add(street);
}
}
copyNames(city);
}
}