Converts a char to a direction value. Checks that the char is consistent with the given isLatitude indication.

Namespace: FlightPlan
Assembly: FlightPlanXML (in FlightPlanXML.dll) Versión: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static GPSCoords..::..Direction CharToDirection(
	char c,
	bool isLatitude
)
Visual Basic
Public Shared Function CharToDirection ( _
	c As Char, _
	isLatitude As Boolean _
) As GPSCoords..::..Direction
Visual C++
public:
static GPSCoords..::..Direction CharToDirection(
	wchar_t c, 
	bool isLatitude
)

Parameters

c
Type: System..::..Char
A Char with possible values: 'N', 'E', 'S' and 'W' and their corresponding lowercase characters.
isLatitude
Type: System..::..Boolean
A Boolean equaling true if the char corresponds to a latitude value, i.e. north or south.

Return Value

A GPSCoords..::..Direction

See Also