Coder Social home page Coder Social logo

address-validation-cleansing-nz-dotnet-standard's Introduction

Address and Postal Code Validation for New Zealand

https://www.addy.co.nz/

Address cleansing, also called address validation or address matching, helps to transform incomplete, improperly formatted or duplicate addresses stored in a database into accurate addresses validated against official address databases, such as the New Zealand Postal Address File (PAF).

Make it easy for users to find and validate their address in your .NET, C# or VB.NET application.

Installation

Get starting using the "Addy.Address.Service.Standard" NuGet package:

Install-Package Addy.Address.Service.Standard -Version 1.4.1

Address Search API

Call the Address Search API to find and validate addresses using fuzzy matching to eliminate typos and spelling mistakes.

Address Search Documentation:

https://www.addy.co.nz/address-validation-nz-website

https://www.addy.co.nz/address-finder-and-postcode-api

Address Details API

Call the Address Details API to retrieve address information, such as New Zealand Post’s Delivery Point Identifier (DPID), LINZ’s Street Address ID or longitude / latitude (x / y) coordinates, street names, city names, suburbs, postal codes, territories, regions and more.

Address Metadata Documentation:

https://www.addy.co.nz/address-details-api

The code sample will automatically convert JSON address search responses into DTO/POCO objects.

Address Validation API

Addy's address validation API, also know as the address cleansing API or address correction API, will verify, cleanse, standardize and format addresses to deliver complete, accurate and enhanced data.

Address Cleansing Documentation:

https://www.addy.co.nz/faq/address-cleansing-software

https://www.addy.co.nz/address-validation-api

Sample Code in .NET (C#)

Call the Address Lookup API:

// Create a free API Key: https://www.addy.co.nz/
const string apiKey = "your-api-key";
IRequestFactory requestFactory = new RequestFactory(apiKey);

using (IAddressValidationService validationService = new AddressValidationService(requestFactory))
{
   Console.WriteLine("Type an address to validate/cleanse:");
   var criteria = Console.ReadLine();
   if (string.IsNullOrWhiteSpace(criteria)) return;

   var result = await validationService.AddressValidateAsync(criteria);

   if (result.address == null)
   {
      Console.WriteLine("No match found. " + result.reason);
   }
   else
   {
      Console.WriteLine("Full Address: {0}", result.address.full);
   }
}

Links

Official Addy site: https://www.addy.co.nz/

Address Search API Documentation: https://www.addy.co.nz/address-finder-and-postcode-api

address-validation-cleansing-nz-dotnet-standard's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.