最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Can Google Maps plot points based on Hours Minutes Seconds - Stack Overflow

programmeradmin0浏览0评论

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.

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.

Share Improve this question edited Nov 17, 2009 at 21:41 Serhiy asked Nov 17, 2009 at 21:32 SerhiySerhiy 2,5553 gold badges34 silver badges49 bronze badges 1
  • 1 See this question: stackoverflow./questions/1140189/… – Chris B Commented Nov 17, 2009 at 23:44
Add a ment  | 

1 Answer 1

Reset to default 8

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);
发布评论

评论列表(0)

  1. 暂无评论