Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tnc1997/dart-tfl-api-client
Please note that Client for TfL API is unofficial and not endorsed by TfL.
https://github.com/tnc1997/dart-tfl-api-client
client dart tfl-api
Last synced: about 1 month ago
JSON representation
Please note that Client for TfL API is unofficial and not endorsed by TfL.
- Host: GitHub
- URL: https://github.com/tnc1997/dart-tfl-api-client
- Owner: tnc1997
- License: mit
- Created: 2019-07-09T08:56:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-07T09:52:32.000Z (almost 4 years ago)
- Last Synced: 2024-09-30T12:01:18.716Z (about 1 month ago)
- Topics: client, dart, tfl-api
- Language: Dart
- Homepage: https://pub.dev/packages/tfl_api_client
- Size: 353 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```dart
import 'dart:io';import 'package:tfl_api_client/tfl_api_client.dart';
Future 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][issue-tracker].
[issue-tracker]: https://github.com/tnc1997/dart-tfl-api-client/issues