PositionDistanceAsMiles Method (Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint)

ZylGpsReceiver.NET Mobile
Returns the distance between two points in miles.

Namespace:  ZylSoft.Gps.Mobile
Assembly:  ZylGpsReceiverMobile (in ZylGpsReceiverMobile.dll) Version: 3.14.6846.29005
Syntax

public static double DistanceAsMiles(
	int latitudeDegree1,
	int latitudeMinute1,
	double latitudeSecond1,
	CardinalPoint latitudeDirection1,
	int longitudeDegree1,
	int longitudeMinute1,
	double longitudeSecond1,
	CardinalPoint longitudeDirection1,
	int latitudeDegree2,
	int latitudeMinute2,
	double latitudeSecond2,
	CardinalPoint latitudeDirection2,
	int longitudeDegree2,
	int longitudeMinute2,
	double longitudeSecond2,
	CardinalPoint longitudeDirection2
)

Parameters

latitudeDegree1
Type: SystemInt32
degree part of the first point's latitude.
latitudeMinute1
Type: SystemInt32
minute part of the first point's latitude.
latitudeSecond1
Type: SystemDouble
Second part of the first point's latitude.
latitudeDirection1
Type: ZylSoft.Gps.MobileCardinalPoint
Direction part of the first point's latitude.
longitudeDegree1
Type: SystemInt32
degree part of the first point's longitude.
longitudeMinute1
Type: SystemInt32
minute part of the first point's longitude.
longitudeSecond1
Type: SystemDouble
Second part of the first point's longitude.
longitudeDirection1
Type: ZylSoft.Gps.MobileCardinalPoint
Direction part of the first point's longitude.
latitudeDegree2
Type: SystemInt32
degree part of the second point's latitude.
latitudeMinute2
Type: SystemInt32
minute part of the second point's latitude.
latitudeSecond2
Type: SystemDouble
Second part of the second point's latitude.
latitudeDirection2
Type: ZylSoft.Gps.MobileCardinalPoint
Direction part of the second point's latitude.
longitudeDegree2
Type: SystemInt32
degree part of the second point's longitude.
longitudeMinute2
Type: SystemInt32
minute part of the second point's longitude.
longitudeSecond2
Type: SystemDouble
Second part of the second point's longitude.
longitudeDirection2
Type: ZylSoft.Gps.MobileCardinalPoint
Direction part of the second point's longitude.

Return Value

Type: Double
Distance in miles.
See Also

Reference