tfl_api_client 1.0.0-nullsafety.1 icon indicating copy to clipboard operation
tfl_api_client: ^1.0.0-nullsafety.1 copied to clipboard

A client for accessing the TfL API. Please note that the TfL API Client is unofficial and not endorsed by TfL.

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.

0
likes
130
pub points
22%
popularity

Publisher

verified publisher iconthomasclark.dev

A client for accessing the TfL API. Please note that the TfL API Client is unofficial and not endorsed by TfL.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

http, json_annotation

More

Packages that depend on tfl_api_client