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

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()}');
}
4
likes
80
pub points
0%
popularity

Publisher

verified publishermarkus.jayjah.de

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