UnitConverters.CoordinatesToMiles(Double, Double, Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Calulate the distance between two coordinate in miles
public static double CoordinatesToMiles (double lat1, double lon1, double lat2, double lon2);
Parameters
- lat1
- System.Double
First latitude
- lon1
- System.Double
First longitude
- lat2
- System.Double
Second latitude
- lon2
- System.Double
Second longitude
Returns
System.Double
Distance in miles