Extension:KML Export/deg2dms

These parser functions convert geographic coordinates in degree notation to degrees-minutes-seconds notation.

Syntax
    

Arguments

 * value: Latitude (for lat_deg2dms) or longitude (for long_deg2dms) decimal degree value.

Returns
lat_deg2dms returns a formated string value between 90° 00′ 00.0″ S and 90° 00′ 00.0″ N. long_deg2dms returns a formated string value between 180° 00′ 00.0″ W and 180° 00′ 00.0″ E.

Example
The above wiki markup returns:

22° 57′ 5″ S 43° 12′ 39″ W