iOS地理围栏中可以为区域设置的最大和最小半径是多少 [英] What is the maximum and minimum radius that can be set for regions in iOS geofencing

查看:128
本文介绍了iOS地理围栏中可以为区域设置的最大和最小半径是多少的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I was working on geofencing in iOS. I actually want to set different regions on the map with different radius for each regions.

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

I actually want to know the Min and Max radius for Regions in iOS geofencing.

谢谢,

推荐答案

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

In iOS there is no minimum radius specified. Apple says, "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."

(来源: 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)。

The maximum radius is specified by CLLocationManager.maximumRegionMonitoringDistance, which is specific to the device and OS. "This value may vary based on the hardware features of the device, as well as on dynamically changing resource constraints." On my iPhone 5s simulator, that value is 2128000.0 (metres, since maximumRegionMonitoringDistance is a CLLocationDistance).

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

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

在城市有很多建筑物(如纽约市)地理环境的峡谷可能无论距离多远都没有用,你可能需要依赖iBeacons。

In urban canyons where there are a lot of buildings (such as New York City) geofencing may not be useful regardless of distance, and you might need to rely on iBeacons.

这篇关于iOS地理围栏中可以为区域设置的最大和最小半径是多少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆