如何使用谷歌地图API跟踪实时位置? [英] How to track real time position using google map API?
本文介绍了如何使用谷歌地图API跟踪实时位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以帮我解决这个问题吗?
解决方案
请按照以下步骤操作: -
- 您需要托管一台接受android设备种植的经纬度值的服务器
- 你必须在同一个web服务器上使用google maps API。 开发一个实现位置侦听器的android应用程序,创建一个服务器连接并在那里提供你的托管web服务器地址。您的网络服务器上的页面必须接受来自http post方法的经度和纬度值。应该编写
- 代码将这些值存储在数据库中并从数据库中取回并绘制它在谷歌地图使用绘图仪。
- 您可以在windows中编写程序,ios设备平台的经纬度数据必须发送到http post到您的web服务器。
谢谢。
I am planning to implement a vehicle tracking system. Can anyone explain how do i track the position of an android device using Google maps API .. Also if it is not android device, how do i collect the live Geological position of a device (android/iPhone/windows) again only through Google maps API.
Can someone please help me with this ?
解决方案
Follow the steps:-
- You need to host a server which accepts latitude and longitude values seeded from android device
- you have to use google maps API also in the same web server.
- Develop an android application implementing location listener, create a server connection and provide your hosted webserver adress there. a page at your webserver must be codded to accept the latitude and longitude values from the http post method.
- code should be written to store this values in database and retrive it from database and plot it in google map using plotters.
- you can write programs in windows, ios device platforms the latitude and longitude data has to be sended as http post to your web server. Thanks.
这篇关于如何使用谷歌地图API跟踪实时位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文