Parses / determines the geographic coordinate format used in the specified string.
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.ParseGeoCoordinateFormat method from C# code:
string errorMessage = String.Empty;
string str = "13.7480278 W";
GeoCoordinateFormat geoCoordinateFormat = GeoCoordinateFormat.NotDefined;
if (Geodetic.Longitude.ParseGeoCoordinateFormat(str, out geoCoordinateFormat, out errorMessage))
{
Console.WriteLine(geoCoordinateFormat.ToString());
}
else
{
Console.WriteLine(errorMessage);
}