waitingFor

fun waitingFor(destinations: Set<String>): List<Stop.Ride>(source)

Everyone here waiting to be carried and bound for one of destinations, longest waiting first. A rider that has joined the line but not yet begun to wait (see Ride.isWaiting) is not listed.

What a boarding action draws from: pass it StopContextIfc.onwardLocations and it returns exactly those the vehicle could usefully take, in the order they arrived.