Sunday, November 27, 2011

Longitude Latitude

I'm really is a dumb fella. I honestly forgotten what happened to my "slightly above average" IQ that used to belongs to me when I was in high school. Like, seriously.

All this started when I was given this coordinate in this format 3°27'34''N 101°39'45''E (just an example) when what I truly need is a longitude and latitude format for Google Map.

After much much much research and reading, I found this article in Wikipedia that explains how to calculate the whole thing!
"Each degree of longitude is sub-divided into 60 minutes, each of which is divided into 60 seconds. A longitude is thus specified in sexagesimal notation as 23° 27′ 30" E. For higher precision, the seconds are specified with a decimal fraction. An alternative representation uses degrees and minutes, where parts of a minute are expressed in decimal notation with a fraction, thus: 23° 27.500′ E. Degrees may also be expressed as a decimal fraction: 23.45833° E. For calculations, the angular measure may be converted to radians, so longitude may also be expressed in this manner as a signed fraction of π (pi), or an unsigned fraction of 2π."

Which means, in order to calculate it :-

3°27'34''N
3°27 (34 divided by 60) = 3°27.567'N
3° (27.567 divided by 60) = 3.45945°N

So if I do it the same way for the latitude it becomes :-

101°39'45''E
101°39 (45 divided by 60) = 101°39.750'E
101° (39.750 divided by 60) = 101.66250°E

And with that, I finally feel that my "intelligence" is coming back to me. I hope it doesn't run away from me anymore though! Haha!!

No comments:

Post a Comment