{"id":45921607,"url":"https://github.com/matsim-org/pt2matsim","last_synced_at":"2026-02-28T08:52:36.510Z","repository":{"id":11799816,"uuid":"70602692","full_name":"matsim-org/pt2matsim","owner":"matsim-org","description":"Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area.","archived":false,"fork":false,"pushed_at":"2026-02-27T11:53:00.000Z","size":58429,"stargazers_count":57,"open_issues_count":12,"forks_count":86,"subscribers_count":31,"default_branch":"master","last_synced_at":"2026-02-27T16:41:34.944Z","etag":null,"topics":["gtfs","mapping","matsim","osm","public-transport","transit-data"],"latest_commit_sha":null,"homepage":"http://www.ivt.ethz.ch/publikationen/studenten/530.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matsim-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-10-11T14:36:44.000Z","updated_at":"2026-02-27T11:52:58.000Z","dependencies_parsed_at":"2022-08-07T06:16:35.768Z","dependency_job_id":"92f19c77-7954-4196-98f8-2bd2caef3ba5","html_url":"https://github.com/matsim-org/pt2matsim","commit_stats":{"total_commits":478,"total_committers":23,"mean_commits":"20.782608695652176","dds":"0.20711297071129708","last_synced_commit":"fdfe40a0d5adb4ed98dff4de13662c60cd74dcbb"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/matsim-org/pt2matsim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsim-org%2Fpt2matsim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsim-org%2Fpt2matsim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsim-org%2Fpt2matsim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsim-org%2Fpt2matsim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsim-org","download_url":"https://codeload.github.com/matsim-org/pt2matsim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsim-org%2Fpt2matsim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29929100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gtfs","mapping","matsim","osm","public-transport","transit-data"],"created_at":"2026-02-28T08:52:36.026Z","updated_at":"2026-02-28T08:52:36.497Z","avatar_url":"https://github.com/matsim-org.png","language":"Java","funding_links":[],"categories":["地理空间"],"sub_categories":["文件同步"],"readme":"# PT2MATSim\n\n[![Status Maven Test](https://github.com/matsim-org/pt2matsim/actions/workflows/maven-test.yml/badge.svg)](https://github.com/matsim-org/pt2matsim/actions/workflows/maven-test.yml)\n\nPT2MATSim is a package to convert public transit data from GTFS, HAFAS or OSM to a completely mapped MATSim schedule.\n\n![Mapping example](doc/mapping-example.png)\n\nThere are multiple public transit schedule data formats, widely used formats are [GTFS](https://gtfs.org/) and HAFAS. Numerous GTFS feeds are\npublicly available (see [mobilitydatabase.org](https://mobilitydatabase.org) or [transit.land](http://www.transit.land)), otherwise \nthese files have to be obtained from the public transit agency.[^1] \n\n[^1]: The Swiss public transit schedule is available in GTFS and HAFAS format via [opentransportdata.swiss](https://opentransportdata.swiss).\n\nPublic transit data feeds can be converted to unmapped transit schedules using the classes [`Gtfs2Transitschedule`](https://github.com/matsim-org/pt2matsim/wiki/Creating-an-unmapped-MATSim-transit-schedule#from-gtfs)\nor [`Hafas2TransitSchedule`](https://github.com/matsim-org/pt2matsim/wiki/Creating-an-unmapped-MATSim-transit-schedule#from-hafas).[^2] \nPT2MATSim also provides tools to create a multimodal network from OSM with [`Osm2MultimodalNetwork`](https://github.com/matsim-org/pt2matsim/wiki/Creating-a-multimodal-network-(Osm2MultimodalNetwork)).\n\n[^2]: It is possible to convert public transit information from OpenStreetMap files (_Osm2TransitSchedule_). \nHowever, OSM currently does not contain any temporal information, the accuracy of the schedule data varies and is usually not sufficient to be used for simulations.\n\nUnmapped transit schedules lack information on the links used by vehicles and only contain the stop sequence\nfor transit routes. Generating these links (i.e. the path a vehicle takes on a network) is called \"mapping\", a process\ndone by the [`PublicTransitMapper`](https://github.com/matsim-org/pt2matsim/wiki/Mapping-a-MATSim-schedule-to-a-MATSim-network-(Public-Transit-Mapper)). \nIt [implements an algorithm](https://github.com/matsim-org/pt2matsim/wiki/PTMapper-algorithm-and-config-parameters) \nthat uses an abstract graph to calculate the least cost path for a transit route with the constraint \nthat the path must contain a so called link candidate for every stop. The result is a mapped transit schedule and a modified network.\n\nTools to validate and rudimentarily edit the mapped schedule are also part of the package.\n\n### Package Workflow\n\n[The wiki contains information on how to run the converters and mappers.](https://github.com/matsim-org/pt2matsim/wiki)\n\n![pt2matsim workflow](doc/pt2matsim_workflow.jpg)\n\n### Binaries\n\nReleases are available on [repo.matsim.org](https://repo.matsim.org/service/rest/repository/browse/matsim/org/matsim/pt2matsim/). Run the _-shaded.jar_ for standalone usage.\n\nTo include pt2matsim in your own maven project, add this snippet to your pom.xml:\n\n    \u003crepositories\u003e\n        \u003crepository\u003e\n            \u003cid\u003ept2matsim\u003c/id\u003e\n            \u003curl\u003ehttps://repo.matsim.org/repository/matsim/\u003c/url\u003e\n        \u003c/repository\u003e\n    \u003c/repositories\u003e\n\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003eorg.matsim\u003c/groupId\u003e\n            \u003cartifactId\u003ept2matsim\u003c/artifactId\u003e\n            \u003cversion\u003e26.1\u003c/version\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n\nThe master branch contains the snapshot version with the latest changes. Clone the git repository to use it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsim-org%2Fpt2matsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsim-org%2Fpt2matsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsim-org%2Fpt2matsim/lists"}