How to track real time position using google map API?

隐身守侯 提交于 2019-12-06 15:22:51

问题


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 ?


回答1:


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.


来源:https://stackoverflow.com/questions/25209536/how-to-track-real-time-position-using-google-map-api

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