Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. //using System.Device.Location;
  2.  
  3. GeoCoordinate c1 = new GeoCoordinate(36.578581, -118.291994);
  4. GeoCoordinate c2 = new GeoCoordinate(36.23998, -116.83171);
  5.  
  6. double distanceInKm = c1.GetDistanceTo(c2) / 1000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement