tankerkoenig_api 1.0.0-dev.3 tankerkoenig_api: ^1.0.0-dev.3 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!
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 stations");
}