Comments (6)
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.
from matsim-code-examples.
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.
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.
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.
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)
- Creating synthetic population on MATSim HOT 7
- Unreasonably high travel speeds in simulation results HOT 8
- Unexpected Agent Behavior in MATSim Simulation Across Iterations HOT 4
- Any references for why we chose values for maxTravelTimeAlpha and Beta in DRT?
- Any previouos studies about DRT sensitiveity analysis?
- Vulkaneifel scenario keep failing to compile. HOT 5
- How to fix the insuffiencent memory HOT 4
- Estimate the total travel time for all the vehicles HOT 3
- OTFVis in windows
- Different roadPricing for cars and SAVs HOT 2
- Query regarding the 1st Homework Task HOT 6
- Trip-based Network Routing Disutility HOT 3
- How can we make sure that the results obtained with matsim is correct ? HOT 1
- integrating roadPricing and multiModeDrt with drtServiceArea
- Guice Bindings in DefaultMobsimModule HOT 3
- Performance issue for simple simulation (perhaps problem with input files) HOT 9
- Cannot find documentation / solution for traffic simulation
- link traffic volumes by vehicle type
- Assign routes with travel times from events HOT 1
- Time-Dependent Network configuration is not applied dynamically to agents on the links HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matsim-code-examples.