anyone help intergrate google map with a database of post codes

Discussion in 'PHP' started by harrisonford, Apr 15, 2008.

  1. #1
    as it says i have a list of companies on my data base which include post codes of the uk. what im trying to do is let people put in their postcode and it displays all other companies arounfd them by say 50 miles..

    thanks
     
    harrisonford, Apr 15, 2008 IP
  2. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #2
    For that you need to buy postcode data from the post office.
     
    m0nkeymafia, Apr 15, 2008 IP
  3. vishnups

    vishnups Banned

    Messages:
    166
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It can be done. PM me if interested...
     
    vishnups, Apr 15, 2008 IP
  4. harrisonford

    harrisonford Peon

    Messages:
    931
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i have a list of all postcodes
     
    harrisonford, Apr 15, 2008 IP
  5. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #5
    Yes but do you have a list of postcodes vs their lat / longings? You need it.

    If you do then use trigonometry to calculate distance.
    sqr(A) = sqr(B) + sqr(C)

    This link will help you with the math
     
    m0nkeymafia, Apr 16, 2008 IP