#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2015
    Posts
    1
    Rep Power
    0

    Needs Help With Developing Store Locator


    I am an ASP developer. I would love to develop a similar locator as wilsoncombat.com/new/dealer-locator/dealer-locator.asp, but I am not sure how. There are no good Classic ASP examples on the web site.

    I know you use Google API Maps, but I am at a loss about how to develop the code. Can anyone here help me? I have already developed the database so this is not where I need help with.
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0
    I recently built something similar in Django. I don't know ASP well, but the general way I went about it was:

    1. Create google maps API account
    2. For each store, save the geo coords in your DB
    3. When a request comes in, get the coords of the request using the API
    4. Find the closest store "as the crow flies" by diffing the coords you saved with the request
    5. Double check that the store is where you thought in terms of driving distance (not on an island or something)
    6. return the sorted list based on closest stores
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    60
    Rep Power
    16

IMN logo majestic logo threadwatch logo seochat tools logo