PDA

View Full Version : Problem with co-ords


hyper24
04-30-2008, 04:55 AM
I am working on a little project with a micro controller and a gps module.
I would like to mark spots on google earth map and export these co-ords to a file that I can use in my code.

The problem is if i have a spot marked, called check 1 (37°50'3.60"S, 144°55'29.26"E) (co-ords from google earth)

when i save this as a kml file and open the kml file in word I get
144.9247934760362,-37.83433396903715,

but 0.9247934760362*60 = 55.487608562172 so that co-ord equals 144°55'48.76" NOT 144°55'29.26 which is what it shows in google earth.

I am obviously doing something wrong here, but i have tried many positions and they are all out by a slight factor.

Munden
05-01-2008, 02:23 AM
Remember it's minutes/seconds through all of the calculations.

The fractional .48 is .48 of a minute. That's almost 1/2 of a minute. Half of a minute is 30 seconds, so 29" is correct. :) Multiply that .487608562172 by 60 again to get the seconds.