tankerkoenig_api 1.0.0-dev.5 icon indicating copy to clipboard operation
tankerkoenig_api: ^1.0.0-dev.5 copied to clipboard

This package implement a api with that you can get acces to the german patrol station information with diesel, e5 and e10. This plugin is not developed by tankerkönig!

example/main.dart

import 'package:tankerkoenig_api/tankerkoenig_api.dart';

void main(List<String> arguments) async {
  TankerkoenigListResponse response =
      await TankerkoenigApi("invalid").getStationsByRadius(
    lat: 52.520008,
    lng: 13.404954,
    rad: 25,
    type: "all",
    sort: "dist",
  );
  print(response.stations?.length ?? "no stations");

  TankerkoenigDetailResponse response2 =
      await TankerkoenigApi("invalid").getStationDetail(
    id: "id",
  );
  print(response2.station ?? "no station");
}
2
likes
130
pub points
21%
popularity

Publisher

shield icon for verified publisherscedtegapps.de

This package implement a api with that you can get acces to the german patrol station information with diesel, e5 and e10. This plugin is not developed by tankerkönig!

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on tankerkoenig_api