Skip to content

faq 189104133

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

pt2matsim extension

by Jinkai Zhou on 2018-02-26 22:24:44


I used the extension PT2MATSIM to generate a schedule using GTFS data of New York City bus. The route generated by it extension showed that the bus route in some cases deviated from its supposedly original path. In the picture attached, I showed an example. The bus route should be a straight line but at some stops it deviated from its original path and took the long path. I thought since GTFS uses historical data, maybe on that certain day, the route deviated due to traffic conditions. However it is odd that in some cases, the bus route was just as if it is going back and forth on the same link trying to get to the stop on that link. Is this a bug created by the extension? Please let me know if anyone else has experienced this. Thanks.


Comments: 2


Re: pt2matsim extension

by Thibaut Dubernet on 2018-02-27 08:18:43

Dear Jinkai,

to me, this looks like the stops are on links that go north, whereas the line goes south, or the opposite. Thus, the bus needs to make all those loops to go through the links from south to north, before turning back to get to the next stop on the south. I would thus suggest double checking the links the transit stops are on: MATSim has no notion of a "bi-directional link", so on a two-way street, you should need at least two pt stops per station, one for each direction.

Cheers,

Thibaut


Re: pt2matsim extension

by Flavio Poletti on 2018-02-27 10:25:13

pt2matsim should create transit stops for opposite links automatically. If they're actually available that is. It might be that for the some parts of the road only a link in one direction exists which leads to those detours. Or it might be that there's a bus only lane for one direction in real life which was not converted to the network.

Clone this wiki locally