Integrating Google Maps
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?
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.
Thanks. Can it be done relying on google maps? I am reading the Google API documentation but not getting anything worthwhile.