Coder Social home page Coder Social logo

mhinteregger / pt2matsim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matsim-org/pt2matsim

0.0 0.0 0.0 56.33 MB

Package to create a multi-modal MATSim network and schedule from public transit data (GTFS or HAFAS) and an OSM map of the area.

Home Page: http://www.ivt.ethz.ch/publikationen/studenten/530.html

License: GNU General Public License v2.0

Java 100.00%

pt2matsim's Introduction

PT2MATSim

Build Status

PT2MATSim is a package to convert public transit data from GTFS, HAFAS or OSM to a completely mapped MATSim schedule.

Mapping example

There are multiple public transit schedule data formats, widely used formats are GTFS and HAFAS. Numerous GTFS feeds are publicly available (see transitfeeds.com or transit.land), otherwise these files have to be obtained from the public transit agency. The Swiss public transit schedule is available GTFS and HAFAS format via opentransportdata.swiss. Public transit data feeds can be converted to unmapped MATSim transit schedules using the classes Gtfs2Transitschedule or Hafas2TransitSchedule. It is possible to convert public transit information from OpenStreetMap files (Osm2TransitSchedule). However, 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.

Unmapped transit schedules lack information on the links used by vehicles and only contain the stop sequence for transit routes. Generating these links (i.e. the path a vehicle takes on a network) is called "mapping", a process done by the PublicTransitMapper. It implements an algorithm that uses an abstract graph to calculate the least cost path from the transit route's first to its last stop with the constraint that the path must contain a so called link candidate for every stop. The result is a mapped transit schedule and a modified network.

Tools to validate and rudimentarily edit the mapped schedule are also part of the package.

Package Workflow

The wiki contains information on how to run the converters and mappers.

pt2matsim workflow

Binaries

Releases are available on repo.matsim.org. Run the -shaded.jar for standalone usage.

To include pt2matsim in your own maven project, add this snippet to your pom.xml:

<repositories>
    <repository>
        <id>pt2matsim</id>
        <url>https://repo.matsim.org/repository/matsim/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>org.matsim</groupId>
        <artifactId>pt2matsim</artifactId>
        <version>21.8</version>
    </dependency>
</dependencies>

The master branch contains the snapshot version with the latest changes. Clone the git repository to use it.

pt2matsim's People

Contributors

polettif avatar sebhoerl avatar markusstraub avatar jlieberherr avatar dependabot[bot] avatar marecabo avatar davibicudo avatar gregmacfarlane avatar joemolloy avatar mrieser avatar steffenaxer avatar balacmi avatar gabrielthunig avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.