Skip to main content

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

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

Back to the top