SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Locate nearest shops by postcode

    Hi,

    I am trying to do a UK postcode search which is based around distance.

    I am having trouble getting it to work(to put it mildly).

    I have purchased the information from http://www.easypeasy.com/guides/article.php?article=64 to try to help me, but I am getting various errors when running the code.

    I want to have a form that a user fills in with their postcode (e.g. B1 1ER) and selects a radius (e.g. 30 miles). When they submit this form, a list of all shops within a user-defined radius of the user-submitted postcode is displayed.

    A database file of postcodes can be found here.

    Can anybody help me figure it out?

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2005
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wrote some code for US shops, if you want to give that a go shoot me a PM. I can help you out.

    Din

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have not yet received the code from dinheiro (I am sure he is busy).

    I am looking at doing something like a dealer locater where you input your postcode (ZIP code) and get, for example, the 5 nearest dealers.

    Anybody got any suggestions as to what I should be looking at (as I am a PHP noob to say the least)?


Bookmarks

Posting Permissions

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