GPS && AGPS

定位方式:

GPS定位/基站定位/WiFi辅助定位/AGPS定位/Glonass定位/北斗定位

AGPS(即Assisted GPS,网络辅助GPS),就是在GPS定位的基础上,借助移动通信运营基站定位,利用网络来进行数据传输。简而言之,它使用设备的GPS芯片和移动电话网络来实现定位。如今,AGPS已经被广泛应用到移动设备中。

相较于GPS,AGPS正是有了移动通信网络的助力,解决了GPS定位速度慢、受到建筑物阻挡导致的定位失败的两大问题。当我们在室外空旷的地区利用A-GPS定位,正常情况下精度可达到10米左右。与GPS相比,AGPS首次获取GPS信号的时间一般需要几秒钟,不像GPS的首次获取时间可能需要2-3分钟。对于这一点,相信很多“发烧友”深有体会。

对于苹果手机来讲:

CoreLoation库中的CLLocationManager。

On iOS, location manager is built more intelligently. Relying on your configuration, it either uses GPS or WiFi/cell radios, as described in the CLLocationManager documentation:

https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_standard_location_service

参考:

https://zhuanlan.zhihu.com/p/29342498

原文地址:https://www.cnblogs.com/developer-qin/p/12697939.html