VCI.UPS.StreetAddressValidation 1.0.0

dotnet add package VCI.UPS.StreetAddressValidation --version 1.0.0
NuGet\Install-Package VCI.UPS.StreetAddressValidation -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="VCI.UPS.StreetAddressValidation" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VCI.UPS.StreetAddressValidation --version 1.0.0
#r "nuget: VCI.UPS.StreetAddressValidation, 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.
// Install VCI.UPS.StreetAddressValidation as a Cake Addin
#addin nuget:?package=VCI.UPS.StreetAddressValidation&version=1.0.0

// Install VCI.UPS.StreetAddressValidation as a Cake Tool
#tool nuget:?package=VCI.UPS.StreetAddressValidation&version=1.0.0

UpsStreetAddressValidation

A simple library to validate street level addresses using the UPS API

Usage:

var validator = new VCI.UPS.StreetAddressValidation.StreetAddressValidator("clientId", "clientSecret");

// Get the response
// Multiple address candidates
var validatorResponse = validator.ValidateAddress("809 Broadway st", "lenoir city", "tn", "37771", "US");

// Single address candidate response
var validatorResponse1 = validator.ValidateAddress("1865 Gaylord St", "Denver", "co", "80206", "US");

// Not US or PR address
var validatorResponse2 = validator.ValidateAddress("51 westendstrasse", "Munchen", "Bavaria", "", "DE");

// Non-existing address
var validatorResponse3 = validator.ValidateAddress("1234 Whatever Ln", "Fourside", "Eagleland", "12345", "US");

//Usage:
switch (validatorResponse.Status)
{
	case AddressValidationResult.ResponseStatus.CorrectionsFound:
		// Corrected address can be found here: validatorResponse.CorrectedAddress.Street validatorResponse.AddressCandidates[0].Whatever 
	Console.WriteLine(validatorResponse.AddressCandidates.First().Street);
		break;
	case AddressValidationResult.ResponseStatus.NoCorrectionFound:
		// No corrected address was found, but everything went fine.
		Console.WriteLine(validatorResponse.ResponseMessage);
		break;
	case AddressValidationResult.ResponseStatus.ErrorInResponse:
		// There was an error sent back from UPS, usually bad credentials.  Find the details under validatorResponse.ErrorDetail.whatever
		Console.WriteLine(validatorResponse.ErrorDetail.PrimaryErrorCode.Description);
		break;
	case AddressValidationResult.ResponseStatus.Exception:
		// Big break, bad connection probably.  I pass the sometimes helpful exception message back
		Console.WriteLine(validatorResponse.ResponseMessage);
		break;
	case AddressValidationResult.ResponseStatus.NotUSAddress:
		// UPS only supports looking up US and Puerto Rican addresses.
		Console.WriteLine(validatorResponse.ResponseMessage);
		break;
	default:
		break;
}
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. 
.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.

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 111 5/28/2024