tankerkoenig_dart 0.1.0 copy "tankerkoenig_dart: ^0.1.0" to clipboard
tankerkoenig_dart: ^0.1.0 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.

Dart

A dart package to retrieve germans gas stations and gas prices from tankerkoenig v4 API.

WORK IN PROGRESS

Features #

  • retrieve gas stations by postal code, latitude and longitude or by given id
  • retrieve gas price statistics

Usage #

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()}');
}

See /example or /test for usage information. See tankerkoenig.yaml file for api reference.

Additional information #

tankerkoenig Website

tankerkoenig API

4
likes
120
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