Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Modelling Public Transport Line (or fixed Route)

I recommend that you use osmWebWizard to import a network including public transport and then look at the generated file osm_pt.rou.xml as an example of succinct public transport modelling. The stops and times are defined only once in a named route and the vehicles are defined as flows which reference this route.
See also https://sumo.dlr.de/docs/Simulation/Public_Transport.html#stops_in_a_stand-alone_route.

regards,
Jakob

Am Mo., 4. Mai 2020 um 17:56 Uhr schrieb Mirko Barthauer <m.barthauer@xxxxxxxxxxx>:

Hi,

have you tried out defining your public transport line as a flow element (see https://sumo.dlr.de/docs/Simulation/Public_Transport.html#flows)? Then you should be able to specify a frequency and reference the route and stops only once.

Regards
Mirko

Am 04.05.2020 um 17:33 schrieb Tripplanner Mumbai:
Hello,

I am confused about the implementation of public transport route inside SUMO.

As per standards, a public transport route (sometimes known as a line) has a fixed sequence of stops which it has to cover, and a frequency which means the number of times that route must be served at these stops.

In SUMO, we have a <route> tag, but I think it is used for deciding a path not a public transport route (or line). On the other hand, a route is modelled through <vehicle> tag using an attribute "line". Well, such modelling is discouraging as each time we have to repeat the sequence of stops and related edges, as given below of two instances repeating the same information unnecessarily.

Instance 1:
<vehicle id="bus_14.0" type="bus" depart="0.00" departLane="best" line="14">
<route edges="78[0] 56a 56b 77bc 77cd 53cd 53[0] 78[1][1] 189[0] 189[1][0]+20000 189[1][1] 188 87[0] 20001+87[1][0] 87[1][1] m90 89[0] 20002+89[1][0] 89[1][1] 91 186 109[0] 109[1][0]+20003 109[1][1] 116 46 134 134b"/>
<stop busStop="busStop#31" until="0.00"/>
<stop busStop="busStop#32" until="120.00"/>
<stop busStop="busStop#33" until="240.00"/>
<stop busStop="busStop#34" until="360.00"/>
<stop busStop="busStop#21" until="480.00"/>
</vehicle>

Instance 2:
<vehicle id="bus_14.1" type="bus" depart="240.00" departLane="best" line="14">
<route edges="78[0] 56a 56b 77bc 77cd 53cd 53[0] 78[1][1] 189[0] 189[1][0]+20000 189[1][1] 188 87[0] 20001+87[1][0] 87[1][1] m90 89[0] 20002+89[1][0] 89[1][1] 91 186 109[0] 109[1][0]+20003 109[1][1] 116 46 134 134b"/>
<stop busStop="busStop#31" until="240.00"/>
<stop busStop="busStop#32" until="360.00"/>
<stop busStop="busStop#33" until="480.00"/>
<stop busStop="busStop#34" until="600.00"/>
<stop busStop="busStop#21" until="720.00"/>
</vehicle>

Furthermore, I would like to know about implementing frequency assignment to a public transport route (or line). Could anyone clarify my doubts or redirect me to a correct thread.

thanks and regards,
Dillip Rout

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top