【问题标题】:What is the maximum and minimum radius that can be set for regions in iOS geofencingiOS地理围栏中可以为区域设置的最大和最小半径是多少
【发布时间】:2014-02-17 22:01:56
【问题描述】:

我正在研究 iOS 中的地理围栏。我实际上想在地图上为每个区域设置不同半径的不同区域。

我实际上想知道 iOS 地理围栏中区域的最小和最大半径。

谢谢,

【问题讨论】:

标签: ios iphone geolocation geofencing


【解决方案1】:

在 iOS 中没有指定最小半径。苹果表示,“具体的阈值距离由硬件和当前可用的定位技术决定。例如,如果禁用 Wi-Fi,区域监控的准确度就会大大降低。但是,出于测试目的,你可以假设最短距离约为 200 米。”

(来源:https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/RegionMonitoring/RegionMonitoring.html#//apple_ref/doc/uid/TP40009497-CH9-SW11

最大半径由 CLLocationManager.maximumRegionMonitoringDistance 指定,特定于设备和操作系统。 “这个值可能会根据设备的硬件特性以及动态变化的资源限制而有所不同。”在我的 iPhone 5s 模拟器上,该值为 2128000.0(米,因为 maximumRegionMonitoringDistance 是 CLLocationDistance)。

(来源:https://developer.apple.com/library/IOS/documentation/CoreLocation/Reference/CLLocationManager_Class/index.html#//apple_ref/occ/instp/CLLocationManager/maximumRegionMonitoringDistance 和 CLLocationManager.h)

在有很多建筑物的城市峡谷中(例如纽约市),无论距离如何,地理围栏都可能没有用,您可能需要依赖 iBeacons。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2010-11-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-04-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多