Lat and Long data format

36 views
Skip to first unread message

arobas arobas

unread,
Sep 20, 2011, 7:59:05 AM9/20/11
to google-map...@googlegroups.com
Hello,
I'm currently trying to create a Marker with this kind of data : 13° 45' 7.99" N. In french this is called "sexagécimales", but I don't find the english translation.

The site http://maps.google.com/ recognizes it, but when I want to create my google.maps.LatLng, I have an error.

Is Google Map Api enable to read this kind of data ?

Thanks.













Andrew Leach

unread,
Sep 20, 2011, 12:28:45 PM9/20/11
to google-map...@googlegroups.com
On 20 September 2011 12:59, arobas arobas <arobas123...@gmail.com> wrote:
Is Google Map Api enable to read this kind of data ?


No. You need to convert it to degrees and decimals of a degree.
13° 45' 7.99" N is 13 + (45/60) + (7.99/3600) = 13.752219

I think the usual way of naming your "sexagecimales" is DMS (for degrees/minutes/seconds).

arobas arobas

unread,
Sep 21, 2011, 5:32:08 AM9/21/11
to google-map...@googlegroups.com, andrew....@gmail.com
Thanks for your reply and the translation. I'll do research with the keyword DMS.
Reply all
Reply to author
Forward
0 new messages