如何从iPhone和iPad获取用户位置时如何获得HDOP,PDOP,卫星可用性?

问题描述 投票:0回答:1

我正在研究iOS应用程序,在该应用程序中,我需要将HDOPPDOP和卫星可用性发送到服务器。

我不知道如何从iPhone和iPad获得此HDOPPDOP和卫星的可用性?

ios swift cllocationmanager cllocation cllocationcoordinate2d
1个回答
0
投票

您可以从下面的功能获取HDOP:

public func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {

    let hdop: Double = locations!.horizontalAccuracy / 5.0
    //5.0 is horizontal accuracy ratio
  }
© www.soinside.com 2019 - 2024. All rights reserved.