diff --git a/src/main/java/org/matsim/run/prepare/PrepareNetwork.java b/src/main/java/org/matsim/run/prepare/PrepareNetwork.java index 5a483e8..2330f4f 100644 --- a/src/main/java/org/matsim/run/prepare/PrepareNetwork.java +++ b/src/main/java/org/matsim/run/prepare/PrepareNetwork.java @@ -67,7 +67,7 @@ static void prepareDRT(Network network, ShpOptions shp) { if (mode.equals("null")) { throw new IllegalArgumentException("could not find 'mode' attribute in the given shape file at " + shp.getShapeFile().toString()); } - modeGeoms.compute(mode, (m,geom) -> geom == null ? ((Geometry) feature.getDefaultGeometry()) : geom.union((Geometry) feature.getDefaultGeometry())); + modeGeoms.compute(mode, (m, geom) -> geom == null ? ((Geometry) feature.getDefaultGeometry()) : geom.union((Geometry) feature.getDefaultGeometry())); } @@ -77,7 +77,7 @@ static void prepareDRT(Network network, ShpOptions shp) { } for (Map.Entry modeGeometryEntry : modeGeoms.entrySet()) { - if(MGC.coord2Point(link.getFromNode().getCoord()).within(modeGeometryEntry.getValue()) && + if (MGC.coord2Point(link.getFromNode().getCoord()).within(modeGeometryEntry.getValue()) && MGC.coord2Point(link.getToNode().getCoord()).within(modeGeometryEntry.getValue())){ Set allowedModes = new HashSet<>(link.getAllowedModes()); allowedModes.add(modeGeometryEntry.getKey());