tankerkoenig_dart 1.0.2 copy "tankerkoenig_dart: ^1.0.2" to clipboard
tankerkoenig_dart: ^1.0.2 copied to clipboard

outdated

A dart package to retrieve data from german tankerkoenig v4 API. Get petrol stations, gas prices and the corresponding location from their API.

example/tankerkoenig_dart_example.dart

import 'package:tankerkoenig_dart/tankerkoenig_dart.dart';

Future<void> main() async {
  const String apiKey = '';
  final TankerKoenigApi api = TankerKoenigApi(apiKey);
  print(
      'Station by postal code: ${await api.stationsByPostalCode(postalCode: '24558')}');
  print(
      'Station by id: ${await api.stationById(id: '92f703e8-0b3c-46da-9948-25cb1a6a1514')}');
  print('Statistics: ${await api.statistics()}');
}
5
likes
100
points
4
downloads

Publisher

verified publishermarkus.jayjah.de

Weekly Downloads

A dart package to retrieve data from german tankerkoenig v4 API. Get petrol stations, gas prices and the corresponding location from their API.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

chopper

More

Packages that depend on tankerkoenig_dart