matsim-code-examples icon indicating copy to clipboard operation
matsim-code-examples copied to clipboard

pt and drt example

Open ywf opened this issue 2 years ago • 2 comments

hello,can each plan support multi legs ? for example.the trip is separated two sections,the first is pt and the second is drt, is it OK? if the plan file is defined as follows: <person id="passenger_0" employed="no"> <plan selected="yes"> <act type="dummy" link="114" end_time="00:00:00"/> **<leg mode="drt"/> <leg mode="pt"/>** <act type="dummy" link="349"/> </plan> </person>

ywf avatar Sep 21 '22 07:09 ywf

Yes, the plan can support multiple legs within a trip. In your example, if you use the Intermodal SwissRailRaptor for public transport trips, you will also get a pt interaction activity that is used to maintain alternating leg/activity representation of the plan. This interaction activity is normally not scored.

I hope this helps.

balacmi avatar Sep 22 '22 08:09 balacmi

thanks for your reply,SwissRailRaptor can support the transfer between many pt lines , can SwissRailRaptor support the transfer between pt and multiDrt? thanks

ywf avatar Sep 23 '22 03:09 ywf