matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
83 stars 180 forks source link

Public transit network #431

Closed jalal1 closed 3 years ago

jalal1 commented 4 years ago

Dears,

I am working on a model with both cars and public transit. I used GTFS2MATSim to create the needed input files, and also I used the car's network as input to combine it with the public transit network. So now I have a network file with both cars and public transit links.

I noticed that both networks are separated, each with different nodes and links. Does this mean that cars will not be able to use public transit links, the same for busses? If that correct, and if I run an experiment with only busses in the network, how I can measure the congestion, counts, ...? Also, if I run an experiment with both modes, does it mean that busses will not be counted, because they are using different links?

In Via I noticed that the public transit network doesn't use the car's network, instead, it connects stations together, is that how it works, or maybe I miss something. I attached an image, how a public transit route looks like.

Notice that when I did the conversion using GTFS2MATSim, I used: 'CoordinateTransformation ct = new WGS84toMercator();' instead of 'CoordinateTransformation ct = TransformationFactory.getCoordinateTransformation(TransformationFactory.WGS84,"EPSG:26930");' Because the second line cause an error. Could it be related ?

image

Thank you, Jalal

Janekdererste commented 4 years ago

Your observation is correct. The GTFS2Matsim facility creates a separate pt-network which means busses do not share the road with regular vehicles. This works well for studies where the interaction of busses and private cars is not important. If you're interested in such questions you have to implement your pt differently.

Also, GTFS2Matsim only generates a 'default' pt vehicle which is used for trains as well as busses. You'd have to tweak this parameter as if you're intersted in congestion effects of busses.

polettif commented 4 years ago

This works well for studies where the interaction of busses and private cars is not important. If you're interested in such questions you have to implement your pt differently.

@jalal1 pt2matsim provides GTFS converters and functions that produce a schedule/network where busses and cars use the same network.

Janekdererste commented 4 years ago

@polettif good to know. I'll try it sometime.

jalal1 commented 4 years ago

Thank you @Janekdererste

@polettif, I will try it. Thank you