Serhiy
Serhiy

Reputation: 2555

Can Google Maps plot points based on Hours Minutes Seconds

I'm trying to plot out GPS data that is given to me in Hour Minute Second degree format. Will GLatLng take it in this form or do I need to convert it first. Having a hard time finding anything on the internet about this. If it can take it in this format an example would be much appreciated.

Upvotes: 3

Views: 4991

Answers (1)

Sergi
Sergi

Reputation: 2892

As far as I know it does not accept that format, but its really easy to convert it, just do the math:

var = hour+(((minute*60)+(second))/3600);

Upvotes: 8

Related Questions