On Aug 19, 9:40 am, stiller <[email protected]> wrote:
> Hi
>
> How can i convert the latitude/longitude

http://www.google.com/search?q=how+to+convert+decimal+degrees

var x = 28.98144;
var d = parseInt(x);
var m = parseInt((x-d)*60);
var s = parseInt(((x-d)*60-m)*60+.5);

Result is 28°58'53"

I leave it to you to deal with negative numbers.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to