ride From
open suspend fun rideFrom(stop: Stop, destination: String, suspensionName: String? = null): TransitResult(source)
Waits at a stop for a service going to destination, rides it, and gets off there.
The whole of an ordinary ride in one call. Use requestRide/awaitRide where the process must act between joining the line and being carried.
A vehicle takes it only if the vehicle is going where it is going, which is read from that vehicle's remaining tour rather than from any timetable. A destination no service calls at is therefore not an error and not a hang that raises: it is a load that stands at the stop for the rest of the replication and is reported, by the stop's queue, as having done so.
Return
what the ride cost
Parameters
stop
where to wait
destination
the location to be carried to
suspension Name
names this suspension point when a process has several