SwissRailRaptor: Keep stage activities (instead of recreating them)

Description

SwissRailRaptor has a custom data structure for found routes (RaptorRoute) and uses RaptorUtils.convertRouteToLegs() to convert it into a List<Leg> and later calls SwissRailRaptorRoutingModule.fillWithActivities() to add stage activities.

For intermodal trips this means that stage activities in the access trip returned by the access/egress mode RoutingModule is kept until RaptorUtils.convertRouteToLegs(), but will not be copied into the List<Leg>.

Rather, SwissRailRaptorRoutingModule.fillWithActivities() attempts to recreate the stage activity. However, SwissRailRaptorRoutingModule.fillWithActivities() does not know where exactly the stage activity was located.

It would be cleaner to just keep the stage activity.

Environment

None

Assignee

Unassigned

Reporter

Gregor Leich

Labels

None

Priority

Minor
Configure