fetchScheduleAtStop function
Fetches the schedule for a specific stop.
apiKey
is your API key for the WMATA API.
date
is the date for which to retrieve the schedule at the stop. If
omitted, the current date will be used.
Implementation
Future<ScheduleAtStop> fetchScheduleAtStop(
String apiKey, {
required String stopId,
DateTime? date,
}) async =>
await ScheduleAtStopService.fetchScheduleAtStop(
apiKey,
stopId: stopId,
date: date?.toWmataStringDateOnly(),
);