Corelocation and assisted gps iPhone

一曲冷凌霜 提交于 2019-11-28 06:16:30

问题


I have a quick question, does the core location in iOS 4.3.2 automatically use assisted gps or is this an option you need to choose.

I am working with the GPS and I recon that the settle time before finding a good accuracy(below 10 meters) is rather long - a few minuts.

Regards

Bjarke


回答1:


It's all automatic. The best you can do is check the altitude, which is undefined when a GPS fix is not available yet.

edit: see http://developer.apple.com/library/mac/#documentation/CoreLocation/Reference/CLLocation_Class/CLLocation/CLLocation.html

if verticalAccuracy < 0, altitude is invalid (from which you can infer no GPS fix)



来源:https://stackoverflow.com/questions/5828992/corelocation-and-assisted-gps-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!