Calculate distance and bearing between two Latitude/Longitude points using Haversine formula in JavaScript: "Calculate distance, bearing and more between two Latitude/Longitude points
Distance
This script calculates great-circle distances between the two points – that is, the shortest distance over the earth’s surface – using the ‘Haversine’ formula.
It assumes a spherical earth, ignoring ellipsoidal effects – which is accurate enough* for most purposes… – giving an ‘as-the-crow-flies’ distance between the two points (ignoring any hills!)."
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment