Address Lookup on form


I want to create an address lookup function on my site.
i.e. the person enters the postcode and the full address is shown for easy comletion of address fields

Whats the best way to accomplish this - can google maps be used?

Who is Participating?
Chris StanyonConnect With a Mentor Commented:
The only official source of this information is from the Royal Mail and it's called the Postcode Address File (PAF).

You have 2 options on using this file.

You can purchase the PAF from Royal Mail (usually on a CD), install it locally (on your webserver) and create the code to query it yourself. To do this you would pay the Royal Mail an annual fee

The other option is to subscribe to a 3rd party provider that has effectively already done the above, and created an API for you to use. Different providers offer different services, but effectively most will charge you 'per-click/search'.

Your own programmings skills and the traffic you expect will dictate which is the most cost-effective solution.

Here's the site:

You can use the site to find 3rd party providers as well.
Tom BeckCommented:
How can a postcode consistently resolve to a single mailing address? Not in the U.S. anyway.
coolispaulAuthor Commented:
well a list of possible addresses is shown

UK based this is

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
You need to start with having a database of all available addresses....  Or an api.

I am not familiar with the UK as I am with the US.  It looks like you want to duplicate this service and they offer a way for you to become a solution provider  and you should understand the licensing
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.