用GPS跟踪其他设备,android? [英] Track other devices with GPS, android?

查看:136
本文介绍了用GPS跟踪其他设备,android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我将在每5分钟内获得所有这50位用户的位置。

我正在研究一个将安装在约50台设备上的应用程序。 / p>

我有一个小概念告诉我是否有可能。如果可能的话,我该如何实现这一点?



因此,我们拥有所有50个设备的位置坐标,即经纬度。



跟踪半径约为5公里。



现在我想要做的是显示所有设备位置地图。如果任何这些设备正在移动,那么用户必须能够看到该设备的移动。



那么,你们有什么解决方案吗?

解决方案

您需要有一些后端可以保留所有设备位置。在每台设备上,您需要使用定时器提供服务,每5分钟推送一次当前位置并提取其他用户的位置。我没有看到任何其他解决方案。



为了显示您只需要Google地图。
我建议检查一下:
http://www.vogella .com / articles / AndroidGoogleMaps / article.html



然后在ArrayList中加上标记并在地图上每5分钟刷新
位置。


I am working on an application which will be installed on around 50 devices.

I will be getting the location of all those 50 users in every 5 minutes.

I have a small concept tell me if it's possible or not. And if possible how do i implement that?

So it goes like this we have the location co-ordinates i.e. latitude and longitude of those all 50 devices.

The tracking radius would be of 5 kms approx.

Now what i want to do is show all those devices location on the map. And if any of those devices are moving then the user must able to see the movement of that other device.

So guys any solutions?

解决方案

You need have some backend which will keep all device location. On each device you need to have service with timer to push current location every 5 minutes and pull location of others users. I don't see any other solution for it.

For displaying you just need Google Maps. I recommend to check this: http://www.vogella.com/articles/AndroidGoogleMaps/article.html

And after just keep ArrayList with your marks and refresh their location on map every 5 minutes.

这篇关于用GPS跟踪其他设备,android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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