SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Integrating Google Maps

    Hi!

    I have to integrate google maps into my website. I have done the basics i.e. showing the google maps and loading the markers. Markers are being loaded from an XML file. Now, I have a requirement , where in, I fill in a address, and all the first 8 markers should be populated, which lies in the nearest location of the filled address. How to go about it? Say for e.g. www.olivegarden.com (you fill in a zip code, and they show all the nearby locations.) How do they do it?

    Thanks,
    Sid

  2. #2
    SitePoint Addict
    Join Date
    Jul 2006
    Location
    Kansas City, MO
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They have a database of all their locations and are using some sort of functions (such as haversine) to determine which locations are closest to a given point.

    Once they have the list its a simple matter of mapping those addresses. They are not relying on google to find locations; they are supplying them.

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2005
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. Can it be done relying on google maps? I am reading the Google API documentation but not getting anything worthwhile.


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
  •