Skip to content

Please note that Client for TfL API is unofficial and not endorsed by TfL.

License

Notifications You must be signed in to change notification settings

tnc1997/dart-tfl-api-client

Repository files navigation

TfL API Client

A client for accessing the TfL API.

Please note that the TfL API Client is unofficial and not endorsed by TfL.

Usage

A simple usage example:

import 'dart:io';

import 'package:tfl_api_client/tfl_api_client.dart';

Future<void> main() async {
  final client = clientViaAppKey(Platform.environment['APP_KEY']!);

  final api = TflApiClient(client: client);

  for (var line in await api.lines.getByPathIds(['victoria'])) {
    print(line);
  }

  client.close();
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

Please note that Client for TfL API is unofficial and not endorsed by TfL.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published