Abstractions.Integrations.StatensVeivesen.VeichleData.Models 4.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package Abstractions.Integrations.StatensVeivesen.VeichleData.Models --version 4.0.5                
NuGet\Install-Package Abstractions.Integrations.StatensVeivesen.VeichleData.Models -Version 4.0.5                
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="Abstractions.Integrations.StatensVeivesen.VeichleData.Models" Version="4.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Abstractions.Integrations.StatensVeivesen.VeichleData.Models --version 4.0.5                
#r "nuget: Abstractions.Integrations.StatensVeivesen.VeichleData.Models, 4.0.5"                
#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 Abstractions.Integrations.StatensVeivesen.VeichleData.Models as a Cake Addin
#addin nuget:?package=Abstractions.Integrations.StatensVeivesen.VeichleData.Models&version=4.0.5

// Install Abstractions.Integrations.StatensVeivesen.VeichleData.Models as a Cake Tool
#tool nuget:?package=Abstractions.Integrations.StatensVeivesen.VeichleData.Models&version=4.0.5                

Introduction

NuGet Version

This library allows lookup of information about veichles registered in Norway. The library requires an API key from Statens Veivesen.

The API key can be created using this link.

Installation

Add the NuGet package
dotnet add package Abstractions.Integrations.StatensVeivesen.VeichleData
Configure API Key

The library will automatically look for a configuration section named VeichleLookupService. To use a different name, configure the options manually.

{
	"VeichleLookupService":
	{
		"ApiKey": "..."
	}
}
Add service to application in Program.cs
// add the service
builder.AddVeichleLookupService();

// or
builder.Services.AddVeichleLookupService();

Usage

To perform a lookup, retrieve an IVeichleLookupService instance from dependency injection, and

var response = await veichleLookupService.LookupLicensePlateAsync("XX00000");
	
// this object contains the entire graph from Statens Veivesen, and is quite verbose
var veichle = response.Veichles[0];

// to get a more light-weight object containing key information, get the summary
var summary = veichle.Summary;	
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Abstractions.Integrations.StatensVeivesen.VeichleData.Models:

Package Downloads
Abstractions.Integrations.StatensVeivesen.VeichleData

This service can be added to an asp.net application in order to look up information about veichles registered in Norway.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.11 49 1/30/2025
4.0.9 35 1/30/2025
4.0.7 34 1/30/2025
4.0.5 41 1/30/2025
4.0.3 9 1/29/2025
4.0.1 3 1/29/2025