I am developing one application, in which I want to achieve the following things using Google Map :
我正在开发一个应用程序,我希望使用Google Map实现以下功能:
-
Person A can get tracked by multiple user.
人A可以被多个用户跟踪。
-
Each and every person who are tracking Person A can put a Pin in Map and make a radius so that they can Track Person A on different location.
跟踪人员A的每个人都可以在地图中放置一个Pin并创建一个半径,以便他们可以在不同位置跟踪人员A.
-
If Person B is tracking Person A in Santa Clara location and radius is 30meters then whenever Person A enters or leaves that location then Person B will get a notification.
如果B人跟踪Santa Clara位置的人A并且半径是30米,那么当A人进入或离开该位置时,B人将收到通知。
-
If Person A has arrived in tracked location, and travelling then we have to display speed, directions in which he is travelling on Map in real-time.
如果A人已到达跟踪位置,然后旅行,那么我们必须显示速度,他在地图上实时旅行的方向。
-
So there can be multiple locations in which Person A gets tracked. and we have to display real-time direction in which he is travelling and current speed. Like UBER app.
因此,可以有多个位置来跟踪人员A.我们必须显示他正在旅行的实时方向和当前速度。喜欢UBER app。
I had a call with google support and she told me "You have to implement your own tracking mechanism by maintaining geocode records in database". But If I implement like this then each and every second I have to send geolocation to the server and retrieve it.
我接到谷歌支持的电话,她告诉我“你必须通过在数据库中维护地理编码记录来实现自己的跟踪机制”。但是,如果我这样实现那么每一秒我都必须将geolocation发送到服务器并检索它。
Is there any other solution for this problem ?
这个问题还有其他解决办法吗?
Thanks, Abbas Mulani
谢谢,阿巴斯穆拉尼
1 个解决方案
#1
0
You will need to implement your own mechanism by saving the markers that person B adds and then checking them against the location of person A for each record. You will also need to save the location of person A along with his speed and location and then display it on the map.
您需要通过保存人B添加的标记然后根据每个记录的人A的位置检查它们来实现自己的机制。您还需要保存人员A的位置以及他的速度和位置,然后将其显示在地图上。
#1
0
You will need to implement your own mechanism by saving the markers that person B adds and then checking them against the location of person A for each record. You will also need to save the location of person A along with his speed and location and then display it on the map.
您需要通过保存人B添加的标记然后根据每个记录的人A的位置检查它们来实现自己的机制。您还需要保存人员A的位置以及他的速度和位置,然后将其显示在地图上。