Google Maps可以根据小时分钟来绘制点数吗? [英] Can Google Maps plot points based on Hours Minutes Seconds

查看:131
本文介绍了Google Maps可以根据小时分钟来绘制点数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图绘制以小时分秒数格式给我的GPS数据。 GLatLng会采用这种形式,还是需要先将其转换。很难在网上找到关于此的任何信息。如果它可以采用这种格式的话,我们将非常感谢。

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.

推荐答案

据我所知,它不接受格式,但它很容易转换它,只需做数学运算:

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);

这篇关于Google Maps可以根据小时分钟来绘制点数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆