Provides a simple streaming interface to the DAWA Address API. It does simple translation from Danish to English and enables access to both full-load and the changes API.
You can get the NuGet package here.
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
await foreach (var accessAddress in client.GetAllAccessAddresses(transaction.Id))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
await foreach (var unitAddress in client.GetAllUnitAddresses(transaction.Id))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
await foreach (var accessAddress in client.GetAllRoadsAsync(transaction.Id))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
await foreach (var postCode in client.GetAllPostCodesAsync(transaction.Id))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
await foreach (var postCode in client.GetAllNamedRoadMunicipalDistrictAsync(transaction.Id))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
// You should use your own fromTransactionId here.
var fromTransactionId = transaction.Id - 1000;
var toTransactionId = transaction.Id;
await foreach (var change in client.GetChangesAccessAddressAsync(fromTransactionId, toTransactionId))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
// You should use your own fromTransactionId here.
var fromTransactionId = transaction.Id - 1000;
var toTransactionId = transaction.Id;
await foreach (var change in client.GetChangesUnitAddressAsync(fromTransactionId, toTransactionId))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
// You should use your own fromTransactionId here.
var fromTransactionId = transaction.Id - 1000;
var toTransactionId = transaction.Id;
await foreach (var change in client.GetChangesRoadsAsync(fromTransactionId, toTransactionId))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
// You should use your own fromTransactionId here.
var fromTransactionId = transaction.Id - 1000;
var toTransactionId = transaction.Id;
await foreach (var change in client.GetChangesPostCodesAsync(fromTransactionId, toTransactionId))
{
// Do your logic here
}
var httpClient = new HttpClient();
var client = new DawaClient(httpClient);
var transaction = await client.GetLatestTransactionAsync();
// You should use your own fromTransactionId here.
var fromTransactionId = transaction.Id - 1000;
var toTransactionId = transaction.Id;
await foreach (var change in client.GetChangesNamedRoadMunicipalDistrictAsync(fromTransactionId, toTransactionId))
{
// Do your logic here
}