Simulation/Public Transport

It is possible to define positions of bus stops and let vehicles ("busses") stop at these positions for a pre-given time. Definitions of bus stop locations in SUMO have the following format: " lane="" startPos="" endPos="" [line="[ ]*"]/>. That means that a bus stop is an area on a lane. The parameters have the following meanings:

Vehicles must be informed that they must stop at a bus stop. The following example shows how this should be done (taken from  /examples/sumo/busses): 

     

What is defined here is a vehicle named "0" being a "BUS". "BUS" is a referenced type declared earlier. The vehicle has an embedded route (written by hand in this case) and a list of stop places. Each stop place is described by two attributes, "bus_stop" and "duration" where "bus_stop" is the name of the bus stop the vehicle shall halt at and "duration" is the time the vehicle shall wait at the bus stop in seconds. Please remark that the order of bus stops the vehicle shall halt at must be correct.

You may also let a vehicle stop at another position than a bus stop. The short definition of a vehicle's stop is: " | ( lane="" endPos="" ) duration="<HALTING_DURATION>"/>. This means you can either use a bus stop or a lane position to define where a vehicle has to stop. For a complete list of attributes for the "stop"-element of a vehicle see Specification.