loadSchedule
abstract suspend fun loadSchedule(routeName: String, areasOfInterest: List<Geometry>, currentMillisUTC: Long): RouteSchedule?
Loads the schedule for a route by its name.
Return
The schedule result, or null if not found or an error occurred.
Parameters
routeName
The name of the route (e.g., "Bus 42").
areasOfInterest
Required list of areas to search within. The implementation search through these areas until a matching route is found. If empty, no search is performed.
currentMillisUTC
The current UTC time in milliseconds since epoch, used to determine the closest departure.