Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //using System.Device.Location;
- GeoCoordinate c1 = new GeoCoordinate(36.578581, -118.291994);
- GeoCoordinate c2 = new GeoCoordinate(36.23998, -116.83171);
- double distanceInKm = c1.GetDistanceTo(c2) / 1000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement