Hi

I have a similar problem, but in a slightly different application.

My GPS seems to be priding LAT/LONG in Degrees, Minutes and Decimal
Mins (On screen it displays as: N51°26.892, W0°09.002).

If i add those strings to google maps through the search box, or with
the following link: http://maps.google.com/maps?q=N51°26.892,
W0°09.002 then the map displays correctly. However, if i pass the same
figures to the api using the following code then it doesn't work.

map.setCenter(new GLatLng(N51°26.892, W0°09.002), 13);

see: 
http://travel.tomandalex.co.uk/south-america-2008/2008/09/18/another-post-right-here/

(I have tried wrapping the strings in " marks to no avail).

I know the maps on this site are working as if i pass a Gmaps lat long
through the code then its all ok
see: http://travel.tomandalex.co.uk/south-america-2008/2008/09/16/hello-world/

How do i get the google maps api to accept this string (i have tried
each of the following formatting options to no avail: N51 26.892, W0
09.002 : 51 26.892, -0 09.002). Is there an api function i can call to
convert the string to accepted gmaps format? Or does anyone know the
logic involved in converting N51°26.892, W0°09.002 to 51.448200,
-0.150033 so i can write a function of my own.

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to Google-Maps-API@googlegroups.com
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