getAddress.Sdk 2.1.4

.NET Standard 2.0
Install-Package getAddress.Sdk -Version 2.1.4
dotnet add package getAddress.Sdk --version 2.1.4
<PackageReference Include="getAddress.Sdk" Version="2.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add getAddress.Sdk --version 2.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: getAddress.Sdk, 2.1.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install getAddress.Sdk as a Cake Addin
#addin nuget:?package=getAddress.Sdk&version=2.1.4

// Install getAddress.Sdk as a Cake Tool
#tool nuget:?package=getAddress.Sdk&version=2.1.4
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

Dependency Injection

services.AddSingleton(s => new GetAddress.ApiKeys("<YOUR ADDRESS LOOKUP KEY>", "<YOUR ADMINISTRATION KEY>"));

services.AddHttpClient<GetAddress.Api>();

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

public async Task Find(GetAddress.Api api)
{
  var result = await api.Find("TR19 7AA");
  
  if (result.IsSuccess)
  {
      foreach(var address in result.Success.Addresses)
      {
          var line1 = address.Line1;
          var line2 = address.Line2;
          var line3 = address.Line3;
          var line4 = address.Line4;
          var buildName = address.BuildingName;
          //....
      }
  }
  else
  {
      var errorMessage = result.Failed.Message;
  }
}

Autocomplete and lookup addresses

public async Task Autocomplete(GetAddress.Api api)
{
  var autocompleteResult = await api.Autocomplete("High St");

  if (autocompleteResult.IsSuccess)
  {
      foreach(var suggestion in autocompleteResult.Success.Suggestions)
      {
          var getResult = await api.Get(suggestion);

          if (getResult.IsSuccess)
          {
              var address = getResult.Success;
              var line1 = address.Line1;
              var line2 = address.Line2;
              var line3 = address.Line3;
              var line4 = address.Line4;
              var buildName = address.BuildingName;
              //....
          }
      }
  }
  else
  {
      var errorMessage = autocompleteResult.Failed.Message;
  }
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
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
2.1.4 303 7/6/2022
2.1.3 62 7/4/2022
2.1.2 3,105 5/2/2022
2.1.1 1,266 3/8/2022
2.1.0 65 3/8/2022
2.0.10 3,369 1/27/2022
2.0.9 237 1/26/2022
2.0.8 6,614 8/22/2021
2.0.7 194 8/22/2021
2.0.6 283 8/11/2021
2.0.5 161 8/11/2021
2.0.4 589 7/7/2021
2.0.3 527 6/15/2021
2.0.2 335 6/1/2021
2.0.1 177 5/28/2021
2.0.0 197 5/28/2021
2.0.0-rc1 124 5/28/2021
2.0.0-rc 151 5/28/2021
2.0.0-beta 142 5/11/2021
1.92.0 50,974 3/4/2021
1.91.7 9,037 1/8/2021
1.91.6 276 1/7/2021
1.91.5 255 1/7/2021
1.91.4 1,085 1/3/2021
1.91.3 251 12/28/2020
1.91.2 307 12/18/2020
1.91.1 309 12/17/2020
1.9.9999 1,351 12/11/2020
1.9.9998 255 12/10/2020
1.9.9997 226 12/10/2020
1.9.9996 248 12/9/2020
1.9.9995 3,053 11/22/2020
1.9.9994 271 11/22/2020
1.9.9993 271 11/22/2020
1.9.9992 271 11/20/2020
1.9.9991 251 11/20/2020
1.9.999 250 11/20/2020
1.9.998 326 11/12/2020
1.9.997 992 11/8/2020
1.9.996 656 11/5/2020
1.9.995 1,301 10/30/2020
1.9.994 283 10/30/2020
1.9.993 706 10/28/2020
1.9.992 483 10/24/2020
1.9.991 615 10/16/2020
1.9.990 290 10/16/2020
1.9.989 308 10/15/2020
1.9.988 259 10/15/2020
1.9.987 296 10/14/2020
1.9.986 760 10/11/2020
1.9.985 2,847 10/4/2020
1.9.984 285 10/2/2020
1.9.983 14,701 9/28/2020
1.9.982 442 9/26/2020
1.9.981 269 9/25/2020
1.9.98 320 9/24/2020
1.9.97 973 9/17/2020
1.9.96 404 9/16/2020
1.9.95 344 9/16/2020
1.9.94 3,280 9/9/2020
1.9.93 1,586 8/25/2020
1.9.92 9,446 8/17/2020
1.9.91 274 8/12/2020
1.9.9 1,233 8/7/2020
1.9.8 300 8/7/2020
1.9.6 12,834 7/12/2020
1.9.5 12,216 5/29/2020
1.9.4 322 5/29/2020
1.9.3 3,062 4/23/2020
1.9.2 326 4/21/2020
1.9.1 314 4/21/2020
1.9.0 1,833 4/3/2020
1.8.0 677 3/26/2020
1.7.6 3,396 3/6/2020
1.7.5 291 3/6/2020
1.7.4 4,709 1/3/2020
1.7.3 354 12/27/2019
1.7.2 414 12/17/2019
1.7.1 2,023 11/19/2019
1.7.0 480 11/17/2019
1.6.4 417 11/5/2019
1.6.3 374 11/1/2019
1.6.2 492 10/17/2019
1.6.1 518 10/15/2019
1.6.0 2,854 9/27/2019
1.5.9 402 9/25/2019
1.5.8 1,082 8/15/2019
1.5.7 2,975 5/9/2019
1.5.6 822 5/1/2019
1.5.5 706 4/10/2019
1.5.4 447 4/10/2019
1.5.3 5,834 3/25/2019
1.5.2 4,823 2/28/2019
1.5.1 456 2/26/2019
1.5.0 551 2/14/2019
1.4.9 521 2/11/2019
1.4.7 549 2/9/2019
1.4.6 490 2/8/2019
1.4.5 506 2/5/2019
1.4.4 910 12/31/2018
1.4.3 511 12/30/2018
1.4.2 521 12/30/2018
1.4.1 2,183 10/29/2018
1.4.0 9,873 9/4/2018
1.3.2 6,415 4/22/2018
1.2.6 894 3/2/2018
1.2.5 693 2/28/2018
1.2.4 954 2/20/2018
1.2.3 917 1/22/2018
1.2.2 12,396 9/25/2017
1.2.1 769 9/25/2017
1.1.2 708 9/21/2017
1.1.1 705 9/21/2017
1.1.0 696 9/17/2017
1.0.5 838 9/14/2017
1.0.4 889 8/21/2017
1.0.3 1,105 7/16/2017
1.0.2 1,030 7/10/2017

Login Requested Webhook