Line

constructor(name: String, stops: List<LineStop>, cyclic: Boolean = true)(source)

Parameters

name

what the service is called

stops

where it calls, in order

cyclic

true for a loop that comes back to where it started, which adds a final leg to the first stop's location so that the cycle time is a whole round and the vehicle finishes in position for the next one. False for a line that ends where its last stop is, which is the shape of a terminal-to-terminal run whose return is a separate line.