The service provides lookup and validation of U.K. physical addresses for web applications that accept user input addresses. It compares data entered by a user against continually updated postcode address file (PAF) data from the British Royal Mail service, GeoData, and other authoritative sources of valid physical or delivery addresses. This validation improves delivery performance by ensuring that addresses provided by users actually exist and are correctly formatted. The same functions are available either as an installed product using local data or an interactive web service.
API methods support queries submitting character strings for a postcode and thoroughfare address as entered by the user and validate the address indicated, then return the correct version according to the Royal Mail or other recognized authorities. Where no exact match is found, the API returns an array of valid addresses nearest the entered location, allowing the application to perform further processing to select one of them.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.
The Postcoder Visual Basic Sample Code by Allies presents how to interact with the API, displaying addresses in London. Address class, root elements, entry point, Key, URL, requests, and responses are the resources available on Github.
The PostCoder Java Sample Code by Allies, demonstrates how to interact with the API. Particularly, developers can learn how to search for addresses in London. Resources include address class, root element, code entry point, API search key, URL, and revise results from calls.