Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder the-dream's Avatar
    Join Date
    Mar 2007
    Location
    Northamptonshire, UK
    Posts
    477
    Thanks
    8
    Thanked 4 Times in 4 Posts

    PHP Postcode, Town

    does anyone know where i could get a MySQL db with postcodes and then towns that those postcode correspond to?

    i think this goes in php because i will develop all of my search in php. any help would be very welcome!

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Only place I know is buying it from Royal Mail. It's expensive too from what I've heard

  • #3
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    846
    Thanks
    15
    Thanked 10 Times in 10 Posts
    You could always compile your own database of postal codes... start working from your postal code outwards. It'd be a lot of work however but as far as I know there isn't a complete database full of them.
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #4
    Regular Coder the-dream's Avatar
    Join Date
    Mar 2007
    Location
    Northamptonshire, UK
    Posts
    477
    Thanks
    8
    Thanked 4 Times in 4 Posts
    i could do that but its only for a very small project.

    i was just wondering if there was a free one?

  • #5
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    There are http lookup queries here is link to a post about a simular problem.

    http://codingforums.com/computer-pc-discussions/107538-uk-postcode-street-name-database.html#post542029
    You can not say you know how to do something, until you can teach it to someone else.

  • #6
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    all you need to do what you suggested is find a list of postal areas and postal disricts here is the information you are looking for. Have fun typing this in

    http://en.wikipedia.org/wiki/List_of...United_Kingdom
    You can not say you know how to do something, until you can teach it to someone else.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •