Skip to content

faq 109939736

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

Issue with pt stop facilities

by Sashi Gurram on 2017-06-13 08:12:54


I am facing an issue with the public transit stop facilities. Consider the following stop facility from the transit schedule file

<stopFacility id="101065" isBlocking="false" linkRefId="63496375" name="63496375" x="347557.241748" y="3097769.47151"/>

The corresponding node and link information for the above link is shown below

<node id="6349" x="347557.241748" y="3097769.47151"/>
<node id="6375" x="347946.494013" y="3097756.66378"/>
<link capacity="797" freespeed="20.1168" from="6349" id="63496375" length="389.462917306" modes="car,bus,walk,bicycle,ride,school bus" permlanes="3" to="6375"/>

So, in other words, the stop facility 101065 is present on (or near) the starting node 6349 of the linkid 63496375. But, when I check the events file, it seems like MATSim is considering the end node of the link (6375) as its stop facility instead of the origin node. Look at the events below.


<event time="30844.0" type="left link" vehicle="tr_28_2" link="63106332" />
 <event time="30844.0" type="entered link" vehicle="tr_28_2" link="63326349" />
 <event time="30860.0" type="VehicleArrivesAtFacility" vehicle="tr_28_2" facility="101034" delay="-546.0" />
 <event time="30860.0" type="VehicleDepartsAtFacility" vehicle="tr_28_2" facility="101034" delay="-566.0" />
 <event time="30861.0" type="left link" vehicle="tr_28_2" link="63326349" />
 <event time="30861.0" type="entered link" vehicle="tr_28_2" link="63496375" />
 <event time="30880.0" type="VehicleArrivesAtFacility" vehicle="tr_28_2" facility="101065" delay="-607.0" />
 <event time="30881.0" type="PersonEntersVehicle" person="8730003" vehicle="tr_28_2" />
 <event time="30883.0" type="VehicleDepartsAtFacility" vehicle="tr_28_2" facility="101065" delay="-624.0" />
 <event time="30884.0" type="left link" vehicle="tr_28_2" link="63496375" />
 <event time="30884.0" type="entered link" vehicle="tr_28_2" link="63758725" />

The above events show that the transit vehicle tr_28_2 has entered the link 63496375 at 30861 seconds. Ideally, the transit vehicle should enter the stop facility at 30862 seconds. But, the vehicle proceeds to the end of the link and then enters the facility at the end of the link. This seems counter intuitive to me. Any help on this is greatly appreciated.


Comments: 1


Re: Issue with pt stop facilities

by Marcel Rieser on 2017-06-13 13:13:27

Due to the Queue model MATSim uses for the representation of links, vehicles can only have interactions at the start or the end of links, but not somewhere in between. The standard mobility simulation qsim decided on having all interactions at the end of a link. This means that any vehicle starting a leg or ending a leg will do so at the end of the link. In the same way, transit stops can only be handled when the vehicle arrives at the end of the link.

So, the observed behaviour is correct in the sense that it's the way that MATSim works.

Other models, where interactions could happen anywhere on a link, could be thought of, but would require major changes to the mobility simulation (qsim or another implementation).

Clone this wiki locally