Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I match street addresses to UK postcodes? [closed]

Tags:

U.K. sites that require addresses often ask the user to provide a postcode. The site then offers the user a choice between the different addresses that match that postcode.

How can I match a postcode to a street address?

like image 585
ctford Avatar asked Dec 14 '09 10:12

ctford


People also ask

Why is my postcode not Recognised?

If you live in a new property and your address or postcode is not recognised, Royal Mail may not have activated your postcode. To activate your postcode, you need to contact Royal Mail directly on 08456 011110 or via their website.

Who is responsible for postcodes in the UK?

The Royal Mail is responsible for the allocation of postcodes to postal addresses, although we will request a postcode on your behalf.

How do you check if my address is registered?

The first is to use a USPS® address verification tool. These tools can verify both US-based addresses as well as international addresses in batches. The second method is to use an address validation API. This technical tool connects to your website, application, or other technology to validate addresses in real time.

How does the UK postcode system work?

It is a hierarchical system, working from left to right — the first letter or pair of letters represents the area, the following digit or digits represent the district within that area, and so on. Each postcode generally represents a street, part of a street, or a single premises.


1 Answers

Quick comparison:

  • Ideal Postcodes - https://ideal-postcodes.co.uk has an package on npm and reasonably priced. Gives address as individual parts as well as a single string, which can be useful for filling out a form as individual bits (and allowing people to customise).
  • getAddress - http://getaddress.io - also reasonably priced. Gives results as a single string only, rather than the broken down components - whether this is better or worse really depends on the situation.
  • PostCode Anywhere - http://www.postcodeanywhere.co.uk/ - used by lots of large household names but much more expensive than other solutions. You can get up to 50 JSON API calls a day directly though - see How do I look up a UK address based on house number and postcode?
  • Get the PAF file yourself http://poweredbypaf.com - this is incredibly expensive.
like image 109
mikemaccana Avatar answered Oct 11 '22 22:10

mikemaccana