PositionDistanceToAsKm Method (Int32, Int32, Double, CardinalPoint, Int32, Int32, Double, CardinalPoint)

ZylGpsReceiver.NET Mobile
Returns the distance between one point and the current position in kilometers.

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

public double DistanceToAsKm(
	int latitudeDegree,
	int latitudeMinute,
	double latitudeSecond,
	CardinalPoint latitudeDirection,
	int longitudeDegree,
	int longitudeMinute,
	double longitudeSecond,
	CardinalPoint longitudeDirection
)

Parameters

latitudeDegree
Type: SystemInt32
degree part of the point's latitude.
latitudeMinute
Type: SystemInt32
minute part of the point's latitude.
latitudeSecond
Type: SystemDouble
Second part of the point's latitude.
latitudeDirection
Type: ZylSoft.Gps.MobileCardinalPoint
Direction part of the point's latitude.
longitudeDegree
Type: SystemInt32
degree part of the point's longitude.
longitudeMinute
Type: SystemInt32
minute part of the point's longitude.
longitudeSecond
Type: SystemDouble
Second part of the point's longitude.
longitudeDirection
Type: ZylSoft.Gps.MobileCardinalPoint
Direction part of the point's longitude.

Return Value

Type: Double
Distance in kilometers.
See Also

Reference