Problem with showing map to my page....how to read these values

Hello Guys!

I have come across with one issue. I am developing one website IN PHP. and i have to display map as well for each business advertisement.

I was able to retrieve the Latitude, Longitude from my JPG images with the help of PICASA 3.0, in such a form:

GPS Latitude: 28 58\'28.8" N
GPS Longitude: 77 41\'28.1" E

Now i want to pass it to one URL
Google Maps[Lat],[Log]
So that i display the map.

But the issue here, how to convert these values GPS Latitude: 28 58\'28.8" N in proper values, sothat i can pass it to Google API, and show the map to my PHP Page.

I really dont understand these values.
GPS Latitude: 28 58\'28.8" N
GPS Longitude: 77 41\'28.1" E

any further help would be highly appreciated.

many thanks.

As I understand it

28 58’ 28.8" N is actually 28 degrees, 58 minutes, 28.8 seconds and you need to convert it to a decimal number by degree + (minutes/60) + (seconds / 3600).

So 28 58’ 28.8 becomes 28.974666 - N positive S negative
and 77 41’ 28.1" becomes 77.691138 - E positive W negative

Then the url

http://maps.google.com/maps/api/staticmap?center=28.974666,77.691138&zoom=12&size=600x600&sensor=true&maptype=roadmap

will give you a google map.