获取在谷歌地图等人的位置 [英] Get location of other people in Google Maps

查看:211
本文介绍了获取在谷歌地图等人的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序与他们的法律同意跟踪的人的数量通过GPS。

I'm developing an Android app that tracks a number of people through GPS with their legal consents.

出于某种原因,我似乎无法找到谷歌的任何相关话题也许我只是不能建立正确的话。

For some reason, I can't seem to find any related topics in Google or maybe I just can't construct the right words.

谷歌地图和其他已经安装。我只需要从那些人的近似经纬度和一些基本的相关信息在轨道上。

Google Maps and others are already setup. I only need the approximated LatLngs and some basic infos from those people in-track.

从哪里开始?或推荐的链接?

Where do I start? or any recommended links?

推荐答案

如果您追踪多种人用自己的同意,那么我假设你的应用程序正在运行的每个用户他们的个人设备上(S) 。如果是这样的情况下,使用Android地理位置API来获取设备的LatLong并定期发布到后端的云计算(比如每分钟左右,以避免过多的写入到后端)。您可以使用一键/值存储来存储坐标,密钥是用户标识符和值是最后纬度/长(我还建议存储时间戳的最后一次更新,以便识别陈旧数据) 。

If you're tracking multiple people with their consent, then I'm assuming that your app is running for each of the users on their individual device(s). If that's the case, use the Android geolocation API to get the device's LatLong and publish it to a backend on the cloud periodically (say every minute or so to avoid too many writes to the backend). You can use a key/value storage to store the coordinates, where the keys are the user identifiers, and the value is the last lat/long (I'd also suggest storing a timestamp for the last update to allow for identifying stale data).

您可以再查询/预订到后端获取最后的纬度/长(一)特定用户(S),然后用它来在GMAP API创建自定义的标记。

You can then query/subscribe to the backend to retrieve the last lat/long of (a) specific user(s), and then use it to create a custom marker on the GMap API.

我们正在处理一个使用类似的逻辑的平台上,但对于不同的用例,在计算接近特定位置以及基于所述邻近提供的动作。

We're working on a platform that uses a similar logic but for a different use-case, calculating proximity to specific locations and providing actions based on the proximity.

我希望这有助于。我们使用离子/角为我们搭建平台,所以我们正在使用PhoneGap的API的访问设备的地理定位服务。

I hope this helps. We're using Ionic/Angular for our build platform so we're using PhoneGap API's to access the GeoLocation services of the device.

这篇关于获取在谷歌地图等人的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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