From 9270a9d3b545c2625504cc367e5b1750882e3fbe Mon Sep 17 00:00:00 2001 From: vsp-gleich Date: Tue, 15 Oct 2024 22:47:25 +0200 Subject: [PATCH] endless circle line: set await departure true and transport mode --- .../transit/EndlessCircleLineScheduleModifier.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) {