Walter.BOM
ToDmsLatitude(Double) Method
Example 
Walter.BOM Assembly > Walter.BOM.Geo Namespace > LocationExtensionMethods Class > ToDmsLatitude Method : ToDmsLatitude(Double) Method
The latitude value to convert. Positive values indicate north latitude and negative values indicate south latitude.
Converts a decimal latitude value to a string representation in degrees, minutes, and seconds (DMS) format with a cardinal direction (N or S).
Syntax
public static string ToDmsLatitude( 
   double latitude
)

Parameters

latitude
The latitude value to convert. Positive values indicate north latitude and negative values indicate south latitude.

Return Value

A string representing the latitude in DMS format. For example, "41°24'12.2\"N" for a latitude of 41.40333.
Example
double latitude = 41.40333m;
string dmsLatitude = latitude.ToDmsLatitude();
Console.WriteLine(dmsLatitude); // Output: 41°24'12.0"N
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LocationExtensionMethods Class
LocationExtensionMethods Members
Overload List