I'm assuming you can parse the values yourself. If not, then provide the language you wish to use.
The conversion is simple, Degrees/Min/Sec(DMS) to Decimal Degrees is
result = D + M/60 + S/3600;
If S or W,
result *= -1;
As always, do your own error checking.
-90 <= lat <= 90
-180 <= lon <= 180