gtfs-conversion

Convert GTFS transit data to MATSim XML files for simulation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps convert GTFS transit data to MATSim format for public transit simulation.

Core Features & Use Cases

  • GTFS Validation & Coordinate Conversion: Validate GTFS zip structure and convert coordinates if needed.
  • GTFS to MATSim Conversion: Run the GTFS-to-MATSim tool to produce transitSchedule.xml, transitVehicles.xml, and population.xml.
  • Validation Outputs: Check counts of stops, routes, and vehicles to ensure data completeness.

Quick Start

Use the GTFS conversion pipeline to convert a Taipei GTFS feed into MATSim-ready transit data, then map and simulate.

Frequently Asked Questions about gtfs-conversion

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

FAQPage Schema
How do I convert GTFS transit data to MATSim format for simulations?

Convert GTFS transit data to MATSim format by providing a GTFS zip file containing stops.txt, routes.txt, trips.txt, and stop_times.txt alongside a base network. The conversion validates the GTFS structure, optionally transforms coordinates to your target reference system, and generates transitSchedule.xml, transitVehicles.xml, and population.xml files ready for MATSim simulations.

What GTFS files do I need to convert transit data to MATSim?

You need a GTFS zip containing at minimum stops.txt, routes.txt, trips.txt, and stop_times.txt. The conversion process validates these required files exist and are correctly structured before proceeding with the transformation to MATSim format.

Can I transform coordinates during GTFS to MATSim conversion?

Yes, the conversion pipeline supports optional coordinate transformation. You can specify a target coordinate reference system, and the tool will convert coordinates from the GTFS data to your desired CRS as part of the conversion to MATSim format.

What outputs does GTFS to MATSim conversion produce?

The conversion generates three XML files for MATSim: transitSchedule.xml containing transit routes and schedules, transitVehicles.xml defining vehicle properties, and population.xml with transit demand. These outputs integrate with your MATSim base network for downstream mapping and simulation.

Do I need a base network to convert GTFS data to MATSim?

Yes, an available base network is required. Provide either an XML network file or OSM-derived network data. The conversion combines this base network with your GTFS data to produce MATSim-ready outputs.

How do I validate GTFS data before MATSim conversion?

The conversion pipeline includes GTFS validation that checks zip structure and required files. After conversion, validation outputs report counts of stops, routes, and vehicles to confirm data completeness and successful transformation.