Parses latitude direction from the provided string with a geographic coordinate.
true - the function has succeeded, false - it has failed
The function does not verifies if the string contains geographic coordinate in the valid format.
This sample shows how to call the Geodetic.Latitude.ParseLatitudeDirection method from C# code:
string errorMessage = String.Empty;
string str = "13.7480278 N";
GeoCoordinateFormat geographicCoordinateFormat = GeoCoordinateFormat.DecimalDegrees;
LatitudeDirection latDirection = LatitudeDirection.NotDefined;
if (Geodetic.Latitude.ParseLatitudeDirection(str, geographicCoordinateFormat, out latDirection, out errorMessage))
{
Console.WriteLine(latDirection.ToString());
}
else
{
Console.WriteLine(errorMessage);
}