Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] duarouter only creates 'walk' for intermodal routing of personTrip

Hello everyone,

I am simulating intermodal routing with buses and a person defined by 'personTrip'. 

When I run the 'osm.sumocfg' file using the SUMO-GUI, I am able to see the agent walk and ride buses at bus stops. However, there are many unnecessary transfers that happen during the trip. I wanted to use duaiterate to improve its plan but it only creates one 'walk' plan (no ride).

Since I know duaiterate calls duarouter, I have tried to test if a multiple plans can be created by running only duarouter:
duarouter -n .\osm.net.xml --route-files .\persons.xml --additional-files .\vType.xml,.\test.add.xml -o .\duatrips.xml

However, it only generates 'walk' even if I created the person along the 'beg' edge inside the bus stop. The same happens even with multiple iterations of duaiterate.

The persons.xml only has one person defined in it:
<routes>
     <person depart="0" id="1">
          <personTrip from="beg" to="end" modes="public" busStop="stop1" />
     </person>
</routes>

A sample duarouter result looks like this:
<routes>
     <person depart="0" id="1">
          <walk edges="beg mid1 mid2 mid3 mid4 ............. end" busStop="stop1" />
     </person>
</routes>

I was hoping to get something like this that happens when I run the GUI:
 <routes>
     <person depart="0" id="1">
          <walk edges="beg mid1 mid2 mid3 ............. end" />
          <ride edges="mid3 mid4 ............. mid20" busStop="stop0" />
          <walk edges="mid20 mid21............. mid40" />
          <ride edges="mid40  mid41 ............. end" busStop="stop1" />
     </person>
</routes>

Is this possible with duarouter?

The network is a little complex so the above sample XML inputs are just examples.

The test.add.xml file includes the busStop data, bus schedules and bus route which works perfectly well when using the SUMO-GUI.

Thank you.

Back to the top