diff --git a/src/main/java/org/matsim/prepare/transit/EndlessCircleLineScheduleModifier.java b/src/main/java/org/matsim/prepare/transit/EndlessCircleLineScheduleModifier.java index a237f613..f4289b3d 100644 --- a/src/main/java/org/matsim/prepare/transit/EndlessCircleLineScheduleModifier.java +++ b/src/main/java/org/matsim/prepare/transit/EndlessCircleLineScheduleModifier.java @@ -121,6 +121,7 @@ private void createLoopingTransitRoute(Id transitLineId, Id transitLineId, Id continuous NetworkRoute networkRoute = RouteUtils.createNetworkRoute(loopingNetworkRouteLinks); TransitRoute loopingRoute = factory.createTransitRoute(loopingTransitRouteId, networkRoute, transitRouteStops, "multiple loopings in one route"); + loopingRoute.setTransportMode(routeToCopy.getTransportMode()); int departureIdCounter = 0; for (double departureTime = firstDepartureTime; departureTime < firstDepartureTime + loopingTravelTime; departureTime = departureTime + headway) {