fetchTrainPositions function
Fetches all train positions.
apiKey
is your API key for the WMATA API.
Implementation
Future<List<TrainPosition>> fetchTrainPositions(String apiKey) async =>
await TrainPositionService.fetchTrainPositions(apiKey);
Fetches all train positions.
apiKey
is your API key for the WMATA API.
Future<List<TrainPosition>> fetchTrainPositions(String apiKey) async =>
await TrainPositionService.fetchTrainPositions(apiKey);