TankerkoenigNet 1.0.2

dotnet add package TankerkoenigNet --version 1.0.2
NuGet\Install-Package TankerkoenigNet -Version 1.0.2
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.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TankerkoenigNet --version 1.0.2
#r "nuget: TankerkoenigNet, 1.0.2"
#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.2

// Install TankerkoenigNet as a Cake Tool
#tool nuget:?package=TankerkoenigNet&version=1.0.2

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 TankerkoenigNet

Getting started

Get an Api key for Tankkönig

  1. Go on creativecommons.tankerkoenig.de
  2. Navigate to 'API-KEY'
  3. 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 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.

Version Downloads Last updated
1.0.2 99 9/17/2023
1.0.1 209 6/25/2023
1.0.0 126 6/25/2023