I have a simple Geolocation function which shows the user where they are on a Google Map. I’d like to add a function which tells the user how far away they are from a specific point, for instance, how far the user is away from The Whitehouse.
Any ideas?
http://www.movable-type.co.uk/scripts/latlong.html
Javascript implementation of the Haversine formula.