swissrailraptor

Diagnose and fix SwissRailRaptor PT routing issues in MATSim simulations.

1|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/ro9er117911/matsim-example-project --skill swissrailraptor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swissrailraptor
Source: https://github.com/ro9er117911/matsim-example-project/tree/main/.claude/skills/matsim-skill/1-swissrailraptor
Command: npx skills add https://github.com/ro9er117911/matsim-example-project --skill swissrailraptor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps configure SwissRailRaptor routing for MATSim public transit simulations and troubleshoot common PT routing issues, enabling transfers and correct PT operation within MATSim.

Core Features & Use Cases

  • PT routing configuration: Configure SwissRailRaptor for PT routing with or without intermodal access/egress.
  • Transfers & intermodal support: Enable intermodal transfers and ensure proper transfer handling.
  • Troubleshooting workflow: Identify root causes such as teleported PT, missing transit modules, or inconsistent plans, and apply fixes.
  • Use Case: You have a MATSim scenario where PT bookings aren't transferring between lines; use this skill to verify config and adjust SwissRailRaptor settings to restore transfers.

Quick Start

  1. Create or adjust your MATSim config to use SwissRailRaptor as the transit router.
  2. Start with useIntermodalAccessEgress=false for simple PT-only tests, then try true if your population uses explicit access/egress legs.
  3. Run a short iteration (e.g., 5 iterations) and inspect events for "PersonEntersVehicle" to confirm PT boarding/transfer behavior.

Frequently Asked Questions about swissrailraptor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure SwissRailRaptor for public transit routing in MATSim?

SwissRailRaptor is MATSim's transit router that enables PT boarding and transfers. Configure it by activating the transit module, setting SwissRailRaptor as the routing algorithm, and specifying networkModes and teleportedModeParameters in your config file. Start with useIntermodalAccessEgress=false for PT-only scenarios.

Why aren't agents transferring between transit lines in my MATSim simulation?

Missing transfers typically stem from inconsistent stopAreaId values, disabled intermodal access/egress, or misconfigured SwissRailRaptor settings. Verify stopAreaId consistency across stops, enable transfers in the transit router config, and inspect PersonEntersVehicle events to confirm boarding behavior.

How do I troubleshoot public transit routing issues in MATSim?

PT routing issues in MATSim—missing boarding events, teleported modes, incomplete intermodal legs—are diagnosed by checking transit module activation, SwissRailRaptor configuration, networkModes alignment, and stopAreaId mapping. Run short test iterations and examine events output to identify root causes.

Can I use intermodal access and egress with SwissRailRaptor?

Yes, SwissRailRaptor supports intermodal access and egress legs. Enable useIntermodalAccessEgress=true and configure teleportedModeParameters for access/egress modes. After simple PT-only validation, test intermodal scenarios to verify agents reach stops and transfer correctly.

What's required to enable transfers in MATSim public transit plans?

Enabling transfers requires consistent stopAreaId values across all transit stops, activated transit module, SwissRailRaptor routing configuration, and proper teleportedModeParameters setup. Validate configuration against the SwissRailRaptor specification and test with short iterations.

How do I verify that my MATSim PT configuration is correct?

Verify PT configuration by running 5 test iterations, examining PersonEntersVehicle events to confirm boarding and transfers occur, and checking that plans include expected PT legs. Inspect MATSim logs for transit module warnings and validate stopAreaId consistency in your network.