Location Finder OR Store locater

Discussion in 'PHP' started by chetanmadaan, Oct 19, 2009.

  1. #1
    I am developing a store locater; the thing i am looking for is a database of the United states Zip codes.... so that is a zip code doesn't have a store... it can show results from nearby zip codes..

    Around 10 to 50 miles near.

    let me know?

    Thanks.
     
    chetanmadaan, Oct 19, 2009 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    let me understand, are you looking for a Zip code database or php script to find nearest store based on a zip code from the database you already have?
     
    mastermunj, Oct 19, 2009 IP
  3. chetanmadaan

    chetanmadaan Active Member

    Messages:
    325
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    database and then script as well if possible.
     
    chetanmadaan, Oct 19, 2009 IP
  4. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #4
    Until you find the information you need, you might try what I did for a client. The script I wrote just uses simple subtraction to determine the five closest matches between the user's Zip Code and that of the store locations. That was good enough for my situation since it was for locating matches among a relatively small number of regional distributors and not a large number of stores, but it might be sufficient until you can make the tool you want.
     
    rainborick, Oct 19, 2009 IP
  5. slidetheweb

    slidetheweb Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Get the google maps API up and running. You can retrieve Geo coordinates from them and compare those to check ranges of nearby stores. As their public API is limited to a certain amount of request per day (i think 15.000) it may be handy to store the Geo results locally.
     
    slidetheweb, Oct 19, 2009 IP
  6. chetanmadaan

    chetanmadaan Active Member

    Messages:
    325
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    can you give me more information about getting google API.

    thanks.
     
    chetanmadaan, Oct 19, 2009 IP
  7. slidetheweb

    slidetheweb Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Sign up at google www google com/maps
    Start playing with a single request to return geo coordinates.
    Then get two points on a map and tune your distance calculation.
    I suggest indexing the store addresses available and calculate range from those. The google and business indexes aren't complete for that matter.

    ps. soz for the link, i'm not allowed to post yet.
     
    slidetheweb, Oct 19, 2009 IP