Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Looking for full UK postcode database

Status
Not open for further replies.
Joined
Dec 5, 2005
Posts
1,063
Reaction score
8
Anyone got a link to a full postcode mysql database: district, postal town, prefix postcodes?
 
Nope but I have the UK phone directory in CSV format which has postcodes towns and allows you to do reverse lookups on phone numbers
 
Thanks guys, what I'm ideally after is something like:

prefix prostcode - district - region - x - y - long - lat

I had found one but it's not very complete!
 
If you have ALL the postcodes, then it should not be that difficult to write a script to push them against Google Maps to the get rest of the info required.
 
I appreciate that, was hoping someone had a link to a a file already made up. I know they're out there lol. Just tracking it down! Busy with other coding at the mo!! If nothing comes up quickly I'll go your route :)
 
To make it mysql just add INSERT INTO postcodes values ( in a new field and ) in last field.

Copy and past and remove tabs.
 
Hm having spot of bother with excel. I need to add doubles quotes around each field??
 
you could always just use PHP to parse it and dump into MySQL

fgetcsv if I remember.
 
All sorted, used the first one as the district/county etc info more useful. Just realised the lat/long is rounded on this, but not important...can always find that data later and amend db!

Many thanks mate!
 
Status
Not open for further replies.

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom