TankerkoenigNet 1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package TankerkoenigNet --version 1.0.1
NuGet\Install-Package TankerkoenigNet -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TankerkoenigNet" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TankerkoenigNet --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TankerkoenigNet, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TankerkoenigNet as a Cake Addin #addin nuget:?package=TankerkoenigNet&version=1.0.1 // Install TankerkoenigNet as a Cake Tool #tool nuget:?package=TankerkoenigNet&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tankkoenig.NET
Tankkoenig.NET is an unofficial .NET API Wrapper for the Tankkönig api. Tankkönig provides the gas prices for german gas stations. The gas stations have to provide them to the 'MTS-K'. With this API Wrapper you can request nearby gas stations and their prices.
Installation
NuGet
Tankkoenig.NET You can install the library either though visual studio in the NuGet explorer. Alternatively you can install it through command line
dotnet add package Discord.Net --version 3.10.0
Getting started
Get an Api key for Tankkönig
- Go on creativecommons.tankerkoenig.de
- Navigate to 'API-KEY'
- Request an API key
Examples
Creating a client
var client = new TankkoenigClientForTests("[YOUR API KEY]", httpClient);
Get nearby gas stations
var stations = await client.ListStationsAsync(21, 12, 5); // client.ListStationsAsync([your lat], [your lon], [radius])
Get data for specific gas stations
var station = await _client.GetStationAsync(Guid.Parse("005056ba-7cb6-1ed2-bceb-90e59ad2cd35")); // the GUID of a random gas station, you have to replace that with the gas station you want.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.