D2tOdometer 26.4.15

dotnet add package D2tOdometer --version 26.4.15
                    
NuGet\Install-Package D2tOdometer -Version 26.4.15
                    
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="D2tOdometer" Version="26.4.15" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="D2tOdometer" Version="26.4.15" />
                    
Directory.Packages.props
<PackageReference Include="D2tOdometer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add D2tOdometer --version 26.4.15
                    
#r "nuget: D2tOdometer, 26.4.15"
                    
#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.
#:package D2tOdometer@26.4.15
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=D2tOdometer&version=26.4.15
                    
Install as a Cake Addin
#tool nuget:?package=D2tOdometer&version=26.4.15
                    
Install as a Cake Tool

D2T Odometer package

This is a library that is able to get odometer records for a driver or vehicle

Minimum requirements

The package requires a minimum of .NET 8 to be used in the project

Installation

go to Project ⇒ Manage nuget packages and search for D2tOdometer

Also the AzureStorageClient package is required with at least version 1.2.0 this should be installed along with the package

Once the package is installed, add the following to your Program.cs:

builder.Services.AddScoped<IOdometerService, OdometerService>();

Identifiers

The identifiers for the available assets are as following:

Vehicle: License plate to lowercase and stripes removed (aabb01)
Driver: Driver card id limited to the first 13 characters (0101010101010)

Available functions

The package has support for the following functions:

  • GetAllRecords(identifier, companyId, start, end, type) // Get all odometer records within the given range

  • GetNearestRecord(identifier, companyId, date, type) // Getting the nearest odometer record to the given date, with a 6 hour extra margin by default

  • GetNearestRecord(identifier, companyId, date, marginInHours, type) // Get the nearest odometer record to the given date, with an extra margin based on the margin in hours

type = OdometerRepositoryType, which is either Driver or vehicle
marginInHours = The amount of extra hours the query will take before and after the given date for the query

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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
26.4.15 106 4/15/2026
1.1.2 228 11/6/2025
1.1.1 207 10/29/2025
1.1.0 159 10/24/2025
1.0.0 185 10/4/2024