fetchTrainPositions function

Future<List<TrainPosition>> fetchTrainPositions(
  1. String apiKey
)

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);