list of postcodes in an area? how to get?

Joined
12 Feb 2006
Posts
17,650
Location
Surrey
i'm after a list of postcodes that are within a section. want it for a form so that when a user inputs their post code, it checks against the first section if it matches one of the ones we cover and then lets the user know either way.

i'm just after the first section, so if a postcode is SW1 3BA, i just want the SW1 part.

I'm finding websites which some what list areas, but it's not always clear if this covers all the postcodes within an area, and how far it goes out, and london for instance seems to be a crazy whole rule of it's own.

thanks.

also while I have you, i'd also like to know the districts for each town too, but that's another problem for a later time.
 
it doesn't quite confirm what i'm after. i'm trying this but it's unreliable. hoping there was some where like on royal mail site that would just show each postcode that comes under each town
 
For districts for each town, google "District in Swansea" ?

maybe districts is the wrong word then. For instance, I go to Guildford, and it shows Godalming as a district within Guildford, which is a town.

For instance, Bellfields is within Guildford. Would you class it as estates within a town? or another word?
 
maybe districts is the wrong word then. For instance, I go to Guildford, and it shows Godalming as a district within Guildford, which is a town.

For instance, Bellfields is within Guildford. Would you class it as estates within a town? or another word?

The problem is that what locals call an area might not be distinguished in the sense form the council’s perspective.
 
Doogal is what we use for live checking of postcodes.

I think I also downloaded a .csv from there too, about 2.5gb IIRC.

If it was that one, it has pretty much everything you can know about a postcode in one of many fields, even things like the police force who cover the area.
 
Google maps API will let you lookup details of a postcode. You can get the town, region, etc from that.
 
Back
Top Bottom