Dawa 1.0.0
dotnet add package Dawa --version 1.0.0
NuGet\Install-Package Dawa -Version 1.0.0
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="Dawa" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dawa" Version="1.0.0" />
<PackageReference Include="Dawa" />
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 Dawa --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Dawa, 1.0.0"
#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 Dawa@1.0.0
#: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=Dawa&version=1.0.0
#tool nuget:?package=Dawa&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DAWA .NET Client
A strongly-typed, fluent, and dependency-injectable DAWA API client for .NET, making it easy to query Denmark’s Address Web API from your applications.
This package provides a fully typed interface to all major DAWA endpoints, with built-in support for multiple output formats (JSON, CSV, GeoJSON), query parameter models, and a fluent API for composing requests.
✨ Features
- Dependency Injection Ready – Add it once to your service collection and inject it anywhere.
- Strongly Typed Endpoints – All DAWA endpoints exposed via clear, discoverable interfaces.
- Multiple Output Formats – Fetch results as JSON, CSV, or GeoJSON with a single method call.
- Fluent Request Building – Chain
.Søge(...)
,.Opslag(...)
,.Autocomplete(...)
etc., directly to output methods. - Built-in Query Parameter Models – Reduce boilerplate by passing structured query objects.
- Full Endpoint Coverage – Adgangsadresser, Adresser, Autocomplete, Jordstykker, Navngivne veje, Postnumre, Vejstykker, and more.
- SRID Support – Strongly typed coordinate system handling (e.g., WGS84, UTMZone32).
- Async-First – All API calls are asynchronous.
📦 Installation
dotnet add package Dawa
🚀 Getting Started
- Register the service in your dependency container:
using Dawa;
builder.Services.AddDawa();
- Resolve and use the client anywhere via constructor injection or manually:
using Dawa;
public class IndexModel(IDawa dawa) : PageModel
{
private readonly IDawa _dawa = dawa;
}
🔍 Example Usage
var result = await _dawa
.Navngivneveje
.Opslag(new("46a834bd-559e-4e69-919d-a534e0a97fcf") { })
.AsGeoJsonAsync();
var result1 = await _dawa
.Adgangsadresser
.Søge(new() { Query = "rostrupsvej 10", PostNr = 9000 })
.AsGeoJsonAsync();
var result2 = await _dawa
.Autocomplete
.Søge(new() { Query = "rostrupsvej" })
.AsJsonAsync();
var result3 = await client
.Navngivneveje
.Naboer(new("65eb3979-821b-41fd-a8ef-da0de69edbc0") {
Afstand = 5.555555555,
SRID = SRID.UTMZone32 })
.AsGeoJsonAsync();
var result4 = await _dawa
.Vejstykker
.Søge(new() { Side = 1, Per_side = 10 })
.AsGeoJsonAsync();
var result5 = await _dawa
.Jordstykker
.Søge(new() { Matrikelnr = "481b", SRID = SRID.UTMZone32 })
.AsJsonAsync();
var result6 = await _dawa
.Postnumre
.Søge(new() { Kommunekode = 851 })
.AsJsonAsync();
var result7 = await _dawa
.Vejstykker
.Søge(new() {
Polygon = [[10.3, 55.3], [10.4, 55.3], [10.4, 55.31], [10.4, 55.31], [10.3, 55.3]],
SRID = SRID.WGS84 })
.AsJsonAsync();
var result8 = await _dawa
.Vejstykker
.Autocomplete(new() { Query = "jolle" })
.AsJsonAsync();
var result9 = await _dawa
.Vejstykker
.Autocomplete(new() { Id = new Guid("5cbdee08-4eae-11e8-93fd-066cff24d637") })
.AsJsonAsync();
var result10 = await _dawa
.Vejstykker
.ReverseGeocode(new(12.5851471984198, 55.6832383751223) { })
.AsJsonAsync();
var result11 = await _dawa
.Vejstykker
.Naboer(new(101, 64) { })
.AsJsonAsync();
var result12 = await _dawa
.Adresser
.Datavask("danmarksgade")
.AsJsonAsync();
var result13 = await _dawa
.Adresser
.Historik(new() { PerSide = 10 })
.AsJsonAsync();
var addresses = await _dawa.Adgangsadresser
.Søge(new() { Query = "rostrupsvej 10", PostNr = 9000 })
.AsCsvAsync();
var streets = await _dawa.Vejstykker
.Autocomplete(new() { Query = "jolle" })
.AsJsonAsync();
var location = await _dawa.Vejstykker
.ReverseGeocode(new(12.5851, 55.6832))
.AsJsonAsync();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. net9.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.AspNetCore.WebUtilities (>= 2.3.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- System.Net.Http.Json (>= 8.0.1)
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.0 | 144 | 8/13/2025 |