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)
- Effect of car ownership , having drivers license or car availability
- Use case of income attribute HOT 2
- Visualize the output files in MATSim 15.0 HOT 1
- How to get the real-time vehicle's location data?
- MATSim over AWS/Azure HOT 2
- VolumesAnalyzer for count the vehicles leave links HOT 1
- plans file HOT 1
- Issue with the GUI HOT 1
- switch from one drt mode to another one during the same trip HOT 4
- Error while running code in MATSim HOT 4
- Trouble with the simulation
- Help with Obtaining Real Origin-Destination Data HOT 4
- Strange long walking behaviour in multimodal scenario! HOT 8
- MATSIM Beginner user HOT 3
- Snapping distance /tolerance to edge from origin/destination location HOT 11
- Route through resticted/private roads HOT 3
- Problem with Car availability attribute
- Score function calculation HOT 3
- The steps to apply DVRP extensions
- Pedestrian modeling and simulation HOT 1
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.