Skip to content

Instantly share code, notes, and snippets.

@jesperordrup
Created June 15, 2014 20:07
Show Gist options
  • Save jesperordrup/a16fae43916e621c688f to your computer and use it in GitHub Desktop.
Save jesperordrup/a16fae43916e621c688f to your computer and use it in GitHub Desktop.
Distance between two coords (lat lng)
var sCoord = new GeoCoordinate(sLatitude, sLongitude);
var eCoord = new GeoCoordinate(eLatitude, eLongitude);
return sCoord.GetDistanceTo(eCoord);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment