Skip to content

Instantly share code, notes, and snippets.

@objectivehtml
Created March 26, 2013 00:14
Show Gist options
  • Select an option

  • Save objectivehtml/5242078 to your computer and use it in GitHub Desktop.

Select an option

Save objectivehtml/5242078 to your computer and use it in GitHub Desktop.
var markerDistance = ((Math.acos(Math.sin(lat * Math.PI / 180) * Math.sin(row.lat * Math.PI / 180) + Math.cos(lat * Math.PI / 180) * Math.cos(row.lat * Math.PI / 180) * Math.cos((lng - row.lng) * Math.PI / 180)) * 180 / Math.PI) * 60 * 1.1515) * 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment