繁体   English   中英

iOS地理围栏中可以为区域设置的最大和最小半径是多少

[英]What is the maximum and minimum radius that can be set for regions in iOS geofencing

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

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

谢谢,

在iOS中,没有指定最小半径。 Apple表示,“具体的阈值距离取决于当前可用的硬件和定位技术。例如,如果禁用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指定,该特定于设备和OS。 “这个值可能会因设备的硬件功能以及动态变化的资源限制而有所不同。” 在我的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。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM