Our tool here has been removed.
Please visit the one on Directions Magazine.
To accomplish this in code, read Gilles Kohl's article Formatting Coordinates with DmsFormat