I'm developing a website and in the contacts page I need to assist the user to find the closest store and give the user directions to it on google maps!
The company has 4 stores in the city (and I have the latitudes & longitudes for all stores).
When the user presses a button I get the latitude & longitude of the user.
So far so good! Now I need to calculate which store is closest to user. How can I do this?