getAddress.Sdk 1.4.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package getAddress.Sdk --version 1.4.2
                    
NuGet\Install-Package getAddress.Sdk -Version 1.4.2
                    
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="getAddress.Sdk" Version="1.4.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="getAddress.Sdk" Version="1.4.2" />
                    
Directory.Packages.props
<PackageReference Include="getAddress.Sdk" />
                    
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 getAddress.Sdk --version 1.4.2
                    
#r "nuget: getAddress.Sdk, 1.4.2"
                    
#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 getAddress.Sdk@1.4.2
                    
#: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=getAddress.Sdk&version=1.4.2
                    
Install as a Cake Addin
#tool nuget:?package=getAddress.Sdk&version=1.4.2
                    
Install as a Cake Tool

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>");

using (var api = new GetAddesssApi(apiKey))
{
    var result = await api.Address.Get(new GetAddressRequest("POSTCODE", "OPTIONAL HOUSE NAME"));

    if (result.IsSuccess)
    {
        var successfulResult =  (GetAddressResponse.Success)result;

        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 Admin Key");

using (var api = new GetAddesssApi(adminKey))
{
    var result = await api.Usage.Get();

    if (result.IsSuccess)
    {
        var successfulResult = (GetUsageResponse.Success)result;

        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 Admin Key");

using (var api = new GetAddesssApi(adminKey))
{
    var result = await api.Usage.Get(DAY,MONTH,YEAR);

    if (result.IsSuccess)
    {
        var successfulResult = (GetUsageResponse.Success)result;

        var count = successfulResult.Usage.Count;

        var limit1 = successfulResult.Usage.Limit1;

        var limit2 = successfulResult.Usage.Limit2;
    }
}
Product 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 netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.1 is compatible.  netstandard1.2 was computed.  netstandard1.3 was computed.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  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 tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Windows Phone wpa81 was computed. 
Windows Store netcore was computed.  netcore45 was computed.  netcore451 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.

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
3.5.1 22,091 12/20/2024
3.5.0 21,244 5/16/2024
3.4.3 156 5/16/2024
3.4.2 10,431 12/28/2023
3.4.1 10,297 9/22/2023
3.4.0 890 9/16/2023
3.3.2 6,729 8/23/2023
3.3.1 204 8/23/2023
3.3.0 202 8/22/2023
3.2.2 4,636 7/7/2023
3.2.1 244 7/6/2023
3.2.0 529 6/22/2023
3.1.0 1,677 4/24/2023
3.0.0 287 4/21/2023
2.7.0 29,996 3/14/2023
2.6.0 4,668 2/18/2023
2.5.0 16,332 12/12/2022
2.4.0 1,749 11/28/2022
2.3.0 9,745 10/20/2022
2.2.0 1,833 10/5/2022
2.1.4 9,234 7/6/2022
2.1.3 523 7/4/2022
2.1.2 14,211 5/2/2022
2.1.1 3,818 3/8/2022
2.1.0 497 3/8/2022
2.0.10 4,749 1/27/2022
2.0.9 703 1/26/2022
2.0.8 9,054 8/22/2021
2.0.7 445 8/22/2021
2.0.6 533 8/11/2021
2.0.5 411 8/11/2021
2.0.4 872 7/7/2021
2.0.3 976 6/15/2021
2.0.2 599 6/1/2021
2.0.1 459 5/28/2021
2.0.0 517 5/28/2021
2.0.0-rc1 331 5/28/2021
2.0.0-rc 344 5/28/2021
2.0.0-beta 330 5/11/2021
1.92.0 85,497 3/4/2021
1.91.7 10,905 1/8/2021
1.91.6 568 1/7/2021
1.91.5 572 1/7/2021
1.91.4 1,961 1/3/2021
1.91.3 582 12/28/2020
1.91.2 626 12/18/2020
1.91.1 620 12/17/2020
1.9.9999 1,664 12/11/2020
1.9.9998 593 12/10/2020
1.9.9997 560 12/10/2020
1.9.9996 562 12/9/2020
1.9.9995 5,566 11/22/2020
1.9.9994 559 11/22/2020
1.9.9993 579 11/22/2020
1.9.9992 595 11/20/2020
1.9.9991 588 11/20/2020
1.9.999 551 11/20/2020
1.9.998 680 11/12/2020
1.9.997 1,306 11/8/2020
1.9.996 974 11/5/2020
1.9.995 1,873 10/30/2020
1.9.994 620 10/30/2020
1.9.993 1,080 10/28/2020
1.9.992 802 10/24/2020
1.9.991 935 10/16/2020
1.9.990 610 10/16/2020
1.9.989 618 10/15/2020
1.9.988 558 10/15/2020
1.9.987 586 10/14/2020
1.9.986 1,060 10/11/2020
1.9.985 3,180 10/4/2020
1.9.984 615 10/2/2020
1.9.983 22,720 9/28/2020
1.9.982 771 9/26/2020
1.9.981 583 9/25/2020
1.9.98 627 9/24/2020
1.9.97 1,479 9/17/2020
1.9.96 734 9/16/2020
1.9.95 648 9/16/2020
1.9.94 3,592 9/9/2020
1.9.93 7,510 8/25/2020
1.9.92 13,316 8/17/2020
1.9.91 611 8/12/2020
1.9.9 1,544 8/7/2020
1.9.8 601 8/7/2020
1.9.6 17,530 7/12/2020
1.9.5 13,587 5/29/2020
1.9.4 633 5/29/2020
1.9.3 5,024 4/23/2020
1.9.2 658 4/21/2020
1.9.1 645 4/21/2020
1.9.0 2,170 4/3/2020
1.8.0 1,040 3/26/2020
1.7.6 4,447 3/6/2020
1.7.5 632 3/6/2020
1.7.4 5,110 1/3/2020
1.7.3 680 12/27/2019
1.7.2 743 12/17/2019
1.7.1 2,357 11/19/2019
1.7.0 815 11/17/2019
1.6.4 770 11/5/2019
1.6.3 715 11/1/2019
1.6.2 966 10/17/2019
1.6.1 912 10/15/2019
1.6.0 3,203 9/27/2019
1.5.9 730 9/25/2019
1.5.8 1,455 8/15/2019
1.5.7 3,378 5/9/2019
1.5.6 1,351 5/1/2019
1.5.5 1,068 4/10/2019
1.5.4 806 4/10/2019
1.5.3 6,184 3/25/2019
1.5.2 9,132 2/28/2019
1.5.1 771 2/26/2019
1.5.0 895 2/14/2019
1.4.9 871 2/11/2019
1.4.7 895 2/9/2019
1.4.6 848 2/8/2019
1.4.5 867 2/5/2019
1.4.4 1,260 12/31/2018
1.4.3 839 12/30/2018
1.4.2 851 12/30/2018
1.4.1 2,575 10/29/2018
1.4.0 10,523 9/4/2018
1.3.2 8,057 4/22/2018
1.2.6 1,502 3/2/2018
1.2.5 1,139 2/28/2018
1.2.4 1,524 2/20/2018
1.2.3 1,659 1/22/2018
1.2.2 14,045 9/25/2017
1.2.1 1,362 9/25/2017
1.1.2 1,195 9/21/2017
1.1.1 1,188 9/21/2017
1.1.0 1,210 9/17/2017
1.0.5 1,449 9/14/2017
1.0.4 1,415 8/21/2017
1.0.3 1,854 7/16/2017
1.0.2 1,756 7/10/2017

Baseaddress as settable property;
Updated to Json.net