Online Postcode Lookup

online-postcode-lookup

This sample online postcode lookup application is written in PHP and returns a UK postal address, or list of postal addresses, based upon a user inputted postcode and (optional) house number.

If the house number is not specified, then a drop-down list of available addresses is populated for the entered postcode. There is also an option to view the selected address using Google Maps.

The code uses the getAddress.io web service to retrieve the online postcode lookup data.

Note: My subscription for getAddress.io has expired so this code will not currently return any address information. I have left the application here for reference purposes or should I renew my subscription to the getAddress.io service.

Run Code

Click the Run Example button to try out this code example.

Documentation

Click the Webhelp button to view the application help documentation.