定位 - 做一个类似滴滴打车的android程序
黄舟
黄舟 2017-04-17 13:20:17
0
1
450

我想通过百度地图或者 高德地图来实现一个定位功能,然后用户自己设定最大半径范围,再发送一个消息,周围使用相同android程序的用户会根据距离由近到远的收到消息。(有数据库支持),请问这种功能应该怎么实现呢?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
小葫芦

1. Geographic location positioning is handed over to third-party map components
2. Use a relatively mature real-time communication platform to complete positioning data interaction. However, it should be noted that after two users establish a data interaction channel, if they want to interact with other users, they must Close the current channel, just like Didi Taxi
3. In fact, the business can directly call an interface similar to REST API

P.S. Point 2: If you use the polling mechanism, it will put a lot of pressure on the server, so it is recommended to use the real-time communication mechanism.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!