how made in PHP from format 52.593800, 21.448850 format +52° 35\' 37.68\", +21° 26\' 55.86\" like do it google http://maps.google.pl/maps?hl=pl&t=m&q=52.593800,21.44
Source
$deg,"min"=>$min,"sec"=>$sec); }
Should be trivial to change the array to the desired string.