I am trying to convert the following to work with the Google maps v3 JS api.
N37 10.320 W122 13.357
How do I convert this to work with the LatLng Object?
I was expecting it to be two decimals, either positive or negative.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I guess it’s just a matter of converting degree-minutes to decimals. The coordinates above mean 37 degrees + 10.320 minutes. 60 minutes make one degree so you should be getting:
In your example
The N/S E/W translate to the sign of the coordinate. I guess North and East mean positive signs, South and West mean negative.