开发者

iPhone Location Services - how to recognize which sources (WLAN, GPS) have been used

Is it possible to find out what sources the location services used to calculate my position. I would like to have this information so that I can show the user if w开发者_如何学编程e used GPS, GPRS or WLAN to detect his position.


No apple doesn't provide a way to know from which source the device has calculated the points but if you want to check whether points are from (Cell Tower/WiFi) or GPS then you should check the vertical accuracy of the CLLocation object which is negative if points are not from GPS. Hope in future apple will provide this facility also. If someone has more good idea, he/she is welcomed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜