如何使用谷歌地图API跟踪实时位置? [英] How to track real time position using google map API?

查看:165
本文介绍了如何使用谷歌地图API跟踪实时位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算实施一个车辆追踪系统。任何人都可以解释我如何跟踪使用谷歌地图API的Android设备的位置。此外,如果它不是Android设备,我如何通过Google地图再次收集设备(android / iPhone / windows)的实时地质位置API。



有人可以帮我解决这个问题吗?

解决方案

请按照以下步骤操作: -


  1. 您需要托管一台接受android设备种植的经纬度值的服务器
  2. 你必须在同一个web服务器上使用google maps API。 开发一个实现位置侦听器的android应用程序,创建一个服务器连接并在那里提供你的托管web服务器地址。您的网络服务器上的页面必须接受来自http post方法的经度和纬度值。应该编写
  3. 代码将这些值存储在数据库中并从数据库中取回并绘制它在谷歌地图使用绘图仪。

  4. 您可以在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:-

  1. You need to host a server which accepts latitude and longitude values seeded from android device
  2. you have to use google maps API also in the same web server.
  3. 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.
  4. code should be written to store this values in database and retrive it from database and plot it in google map using plotters.
  5. 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屋!

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