2014-01-27 67 views

回答

5

在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。

+2

在[鏈接] https://stackoverflow.com/questions/12720658/geofencing-ios-6?lq=1 a一些人報告稱,蘋果工程師已經聲明最小半徑爲100米 – user3486184

相關問題