Git Product home page Git Product logo

Comments (6)

mrieser avatar mrieser commented on June 15, 2024

not sure what exactly you look for... But i had good experience with https://github.com/matsim-org/pt2matsim for automatically mapping pt lines (from GTFS or HAFAS) to an osm-derived network. It likely does not produce a perfect result, but one that, in visualizations, looks good enough -- at least much better and realistic than having the pt vehicles drive in straight lines across buildings and lakes.
As mentioned, pt2matsim also requires GTFS or HAFAS data. If you wan't to extract lines only based on OSM, without other data, it might be a good start to look at the data it extracts from OSM to do the later matching.

Does it have to be in a MATSim context, or are you interested in PT lines in general?
If in general, one might try to come up with a query for the overpass-api to extract pt lines as json.

from matsim-code-examples.

kainagel avatar kainagel commented on June 15, 2024

from matsim-code-examples.

jfbischoff avatar jfbischoff commented on June 15, 2024

Thanks. No, I am looking at a situation where we don't have GTFS or similar (Joinville in Brazil, to be precise).

The MATSim JOSM plugin can do that and it doesn't look too bad :) , maybe @nkuehnel and @michaz

In most other cases, pt2matsim is indeed the way to go.

from matsim-code-examples.

mrieser avatar mrieser commented on June 15, 2024

Looks like Joinville has PT data: http://öpnvkarte.de/#-48.8522;-26.283;13
At least that's a first visual clue if it's worth trying to try to extract data from OSM.

from matsim-code-examples.

nkuehnel avatar nkuehnel commented on June 15, 2024

Thanks. No, I am looking at a situation where we don't have GTFS or similar (Joinville in Brazil, to be precise).

The MATSim JOSM plugin can do that and it doesn't look too bad :) , maybe @nkuehnel and @michaz

In most other cases, pt2matsim is indeed the way to go.

Yes, lines can be converted to MATSim in the plugin if the public transport is tagged according to the recommended tagging scheme. It's possible to extract pseudo network (direct links between stops) or the full route. However, in my experience you will often have to correct some/many of the eixsting tags.

from matsim-code-examples.

kainagel avatar kainagel commented on June 15, 2024

Joschka tried with JOSM, returned a couple of stops and lines, but no route links in between.

I tried with TransitNetworkSink, by @michaz , which returns roughly the same stops, but actually some route links in between. One has to add departures manually, but that is kind of obvious since OSM does not have that info. Afterwards, I end up having a handful of lines.

For whatever reason, both of these approaches miss a large majority of bus stops. Since the maps are able to render them, this feels like a fixable thing. But I don't know enough about OSM parsing to make this happen.

from matsim-code-examples.

Related Issues (20)

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.