Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Defining bidirectional line or bus service

Hello Jakob,
I am unable to follow your instructions. Could you please modify the following line (bus route, which is currently unidirectional) as bidirectional (not cyclic) line?

   <route id="13" edges="55 55b 125 114">
        <stop busStop="busStop#35" until="0"/>
        <stop busStop="busStop#36" until="120"/>
    </route>
   <flow id="bus_13" begin="0" end="3600" period="300" departLane="best" line="13" type="bus" route="13"/>

thanks and regards,
Dillip Rout

On Tue, 2 Jun 2020 at 00:01, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
For the reverse directions you need to define additional busStops (on the reverse direction edges).
Then you can add the stops to the route definition and extend the list of edges.
Once the route has looped back to the start you can either repeat the sequences of stops (with different until times) and edges or use route attributes 'repeat' and 'period'.  For the latter you should use the latest development version due make use of a recent bugfix.

Am Mo., 1. Juni 2020 um 08:25 Uhr schrieb Tripplanner Mumbai <tripplanner.dr@xxxxxxxxx>:
Hello,
In general, if a transit line (bus service route) is provided then it is bidirectional. That is, a bus assigned to this line, goes from depot A to depot B, and then comes back from depot B to depot A in the exactly reverse path in the opposite direction. This is also known as up and down journey of the line (or bus instance) respectively.  

I have defined a route and corresponding flow as follows in my input file as follows.      <route id="13" edges="55 55b 125 114">
        <stop busStop="busStop#35" until="0"/>
        <stop busStop="busStop#36" until="120"/>
    </route>
   <flow id="bus_13" begin="0" end="3600" period="300" departLane="best" line="13" type="bus" route="13"/>

The above input works fine in a single direction. That is, every vehicle (bus) assigned to this line moves from busStop#35 to busStop#36. However, the same vehicle or any other vehicles do not come back or run from busStop#36 to busStop#35. It does not simulate the real-life scenario of bus service.

Kindly, suggest the modification so that I can achieve bidirectional line service and corresponding output.

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