Can Google Maps plot points based on Hours Minutes Seconds

孤街醉人 提交于 2019-12-10 21:07:24

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/1751965/can-google-maps-plot-points-based-on-hours-minutes-seconds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!