iphone - iOS接近度和GPS测量距离

标签 iphone ios gps proximity

我正在开发一个应用程序,如果他从他的检查位置移动超过 20 米,我需要提醒用户。我打算为此开发使用接近传感器。但是我找到了这份文件。

http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html

它说

"The specific threshold distances are determined by the hardware and the location technologies that are currently available. For example, if Wi-Fi is disabled, region monitoring is significantly less accurate. However, for testing purposes, you can assume that the minimum distance is approximately 200 meters."

如果我使用 GPS 距离,它会消耗大量电量。我在错误的道路上发展吗?感谢您的建议。

最佳答案

对于您的任务,唯一的方法是以最佳质量模式 (CLLocationAcuracyBest) 使用 GPS。
检查 loaction.getAcuracy() 以查看位置是否来自 GPS 或手机信号塔/wifi。

关于iphone - iOS接近度和GPS测量距离,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15940996/

相关文章:

iphone - 返回从 Safari 保存到主屏幕的 Web 应用程序

iphone - 将通知电子邮件扩展到移动设备

ios - UIBezierPath 和 CAShapeLayer

python - Google map API 标记刷新

ios - 如何从 ViewController 切换回 TabBarController 的第二个选项卡

ios - NSSortDescriptor - 基于另一个数组的排序描述符

ios - 处理 Firebase childDeleted 和 childModified 观察者 Swift

Android LocationManager : unexpected behavior in Android 12

android - GPS追踪应用程序(策略)

iphone - 如何减少 OHAttributedLabel 和 drawTextInRect 的内存使用