getAddress.Sdk 1.5.7

SDK for https://getaddress.io/

Install-Package getAddress.Sdk -Version 1.5.7
dotnet add package getAddress.Sdk --version 1.5.7
<PackageReference Include="getAddress.Sdk" Version="1.5.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add getAddress.Sdk --version 1.5.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

getAddress.io SDK

Install

Install from Nuget:

PM> Install-Package getAddress.Sdk

Usage

Find postal addresses for a UK postcode and optional house name/number

var apiKey = new ApiKey("<YOUR API KEY>");

IAddressService addresService = new AddressService(apiKey);

var result = await addresService.Get(new GetAddressRequest("POSTCODE", "OPTIONAL HOUSE NAME"));

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var latitude = successfulResult.Latitude;

    var Longitude = successfulResult.Longitude;

    foreach (var address in successfulResult.Addresses)
    {
        var line1 = address.Line1;
        var line2 = address.Line2;
        var line3 = address.Line3;
        var line4 = address.Line4;
        var locality = address.Locality;
        var townOrCity = address.TownOrCity;
        var county = address.County;
    }
}

Get the current day's usage and usage limits

var adminKey = new AdminKey("<YOUR ADMINISTRATION KEY>");

IUsageService usageService = new UsageService(adminKey);

var result = await usageService.Get();

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var count = successfulResult.Usage.Count;

    var limit1 = successfulResult.Usage.Limit1;

    var limit2 = successfulResult.Usage.Limit2;
}

Get usage and limits for a given day, month and year

var adminKey = new AdminKey("<YOUR ADMINISTRATION KEY>");

IUsageService usageService = new UsageService(adminKey);

var result = await usageService.Get(new GetUsageRequest(DAY,MONTH,YEAR));

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var count = successfulResult.Usage.Count;

    var limit1 = successfulResult.Usage.Limit1;

    var limit2 = successfulResult.Usage.Limit2;
}

getAddress.io SDK

Install

Install from Nuget:

PM> Install-Package getAddress.Sdk

Usage

Find postal addresses for a UK postcode and optional house name/number

var apiKey = new ApiKey("<YOUR API KEY>");

IAddressService addresService = new AddressService(apiKey);

var result = await addresService.Get(new GetAddressRequest("POSTCODE", "OPTIONAL HOUSE NAME"));

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var latitude = successfulResult.Latitude;

    var Longitude = successfulResult.Longitude;

    foreach (var address in successfulResult.Addresses)
    {
        var line1 = address.Line1;
        var line2 = address.Line2;
        var line3 = address.Line3;
        var line4 = address.Line4;
        var locality = address.Locality;
        var townOrCity = address.TownOrCity;
        var county = address.County;
    }
}

Get the current day's usage and usage limits

var adminKey = new AdminKey("<YOUR ADMINISTRATION KEY>");

IUsageService usageService = new UsageService(adminKey);

var result = await usageService.Get();

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var count = successfulResult.Usage.Count;

    var limit1 = successfulResult.Usage.Limit1;

    var limit2 = successfulResult.Usage.Limit2;
}

Get usage and limits for a given day, month and year

var adminKey = new AdminKey("<YOUR ADMINISTRATION KEY>");

IUsageService usageService = new UsageService(adminKey);

var result = await usageService.Get(new GetUsageRequest(DAY,MONTH,YEAR));

if (result.IsSuccess)
{
    var successfulResult = result.SuccessfulResult;

    var count = successfulResult.Usage.Count;

    var limit1 = successfulResult.Usage.Limit1;

    var limit2 = successfulResult.Usage.Limit2;
}

Release Notes

Address Service

Version History

Version Downloads Last updated
1.5.7 236 5/9/2019
1.5.6 140 5/1/2019
1.5.5 237 4/10/2019
1.5.4 84 4/10/2019
1.5.3 2,979 3/25/2019
1.5.2 582 2/28/2019
1.5.1 89 2/26/2019
1.5.0 139 2/14/2019
1.4.9 97 2/11/2019
1.4.7 131 2/9/2019
1.4.6 90 2/8/2019
1.4.5 98 2/5/2019
1.4.4 217 12/31/2018
1.4.3 99 12/30/2018
1.4.2 96 12/30/2018
1.4.1 1,162 10/29/2018
1.4.0 629 9/4/2018
1.3.2 2,848 4/22/2018
1.2.6 316 3/2/2018
1.2.5 195 2/28/2018
1.2.4 259 2/20/2018
1.2.3 352 1/22/2018
1.2.2 5,687 9/25/2017
1.2.1 239 9/25/2017
1.1.2 214 9/21/2017
1.1.1 211 9/21/2017
1.1.0 212 9/17/2017
1.0.5 268 9/14/2017
1.0.4 342 8/21/2017
1.0.3 423 7/16/2017
1.0.2 394 7/10/2017