[英]Tracking multiple users in real time on a live location on the map
I'm searching for the track real time live location of the multiple users.我正在搜索多个用户的跟踪实时位置。 Like Ola cabs and Uber Taxi live location.像 Ola cabs 和 Uber Taxi 实时位置。 I try to find so many things but didn't find anything.我试图找到很多东西,但没有找到任何东西。 I also try with the Pubnub.我也尝试使用Pubnub。 but not success on it.但没有成功。
Thanks in advance.提前致谢。
I suggest that you should have a WebSockets service, So the accuracy of tracking is good & up to date,我建议你应该有一个 WebSockets 服务,所以跟踪的准确性是好的和最新的,
You will use one client to send (long, lat) to the WebSockets service,您将使用一个客户端将 (long, lat) 发送到 WebSockets 服务,
The other client will receive the latest updates from the sockets connection, Then you show these updates on your map.另一个客户端将从套接字连接接收最新更新,然后您在地图上显示这些更新。
All that looks easy, But It will require a solid backend service implementation, To handle sockets failure, Also a solid management of locations services on the client end, As this will drain battery super fast.所有这一切看起来都很简单,但它需要一个可靠的后端服务实现,处理套接字故障,还要对客户端的位置服务进行可靠的管理,因为这会超快地耗尽电池。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.