Parses longitude 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.Longitude.ParseLongitudeDirection method from C# code:
string errorMessage = String.Empty;
string str = "13.7480278 W";
GeoCoordinateFormat geographicCoordinateFormat = GeoCoordinateFormat.DecimalDegrees;
LongitudeDirection lonDirection = LongitudeDirection.NotDefined;
if (Geodetic.Longitude.ParseLongitudeDirection(str, geographicCoordinateFormat, out lonDirection, out errorMessage))
{
Console.WriteLine(lonDirection.ToString());
}
else
{
Console.WriteLine(errorMessage);
}