simon.menke | Shared With: Everyone - Dec 13 2006 | haversine, distance, js, code, goodvar R = 6371; // earth's mean radius in km var dLat = p2.lat - p1.lat; var dLong = p2.lon - p1.lon; var a = Math.sin(dLat/2) * Math.sin(dLat/2) + Math.cos(p1.lat) * Math.cos(p2.lat) * Math.sin(dLong/2) * Math.sin(dLong/2); var c = 2 *
Related Content from Around Faves
javascript
- 3 FaversViewed: 54 Times
- mippe - 26 days ago4 FaversViewed: 4 Times
- relia - Oct 11 20073 FaversViewed: 36 Times
